Class: Homebrew::Cmd::TestBotCmd Private
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- Homebrew::Cmd::TestBotCmd
- Defined in:
- dev-cmd/test-bot.rb,
sorbet/rbi/dsl/homebrew/cmd/test_bot_cmd.rbi
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.
Defined Under Namespace
Classes: Args
Instance Method Summary collapse
- #args ⇒ Homebrew::Cmd::TestBotCmd::Args private
- #run ⇒ void private
Methods inherited from AbstractCommand
command, command_name, dev_cmd?, #initialize, parser, ruby_cmd?
Methods included from Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_cannot_install, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning
Constructor Details
This class inherits a constructor from Homebrew::AbstractCommand
Instance Method Details
#args ⇒ Homebrew::Cmd::TestBotCmd::Args
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.
10 |
# File 'sorbet/rbi/dsl/homebrew/cmd/test_bot_cmd.rbi', line 10 def args; end |
#run ⇒ void
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.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'dev-cmd/test-bot.rb', line 129 def run if args.print_padded_prefix? tag = Utils::Bottles.tag padded_prefix = tag.padded_prefix odie "No padded bottle prefix is available for #{tag}." if padded_prefix.nil? puts padded_prefix return end if GitHub::Actions.env_set? ENV["HOMEBREW_COLOR"] = "1" ENV["HOMEBREW_GITHUB_ACTIONS"] = "1" end ENV["HOMEBREW_TEST_BOT"] = "1" Utils::GemSetup.install_bundler_gems!(groups: ["ast"]) if args.only_formulae? || [ args.only_cleanup_before?, args.only_setup?, args.only_tap_syntax?, args.only_formulae_detect?, args.only_formulae_dependents?, args.only_bottles_fetch?, args.only_cleanup_after?, ].none? TestBot.run!(args) end |