Class: Homebrew::Cmd::TestBotCmd Private

Inherits:
AbstractCommand show all
Defined in:
dev-cmd/test-bot.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?

Methods included from Utils::Output::Mixin

#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#runvoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.



121
122
123
124
125
126
127
128
129
# File 'dev-cmd/test-bot.rb', line 121

def run
  if ENV["GITHUB_ACTIONS"].present?
    ENV["HOMEBREW_COLOR"] = "1"
    ENV["HOMEBREW_GITHUB_ACTIONS"] = "1"
  end
  ENV["HOMEBREW_TEST_BOT"] = "1"

  TestBot.run!(args)
end