Class: Homebrew::Cmd::UpgradeCmd Private
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- Homebrew::Cmd::UpgradeCmd
- Defined in:
- sorbet/rbi/dsl/homebrew/cmd/upgrade_cmd.rbi,
cmd/upgrade.rb
Overview
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.
DO NOT EDIT MANUALLY
This is an autogenerated file for dynamic methods in Homebrew::Cmd::UpgradeCmd
.
Please instead update this file by running bin/tapioca dsl Homebrew::Cmd::UpgradeCmd
.
Defined Under Namespace
Classes: Args
Instance Method Summary collapse
- #args ⇒ Homebrew::Cmd::UpgradeCmd::Args private
- #run ⇒ void private
Methods inherited from AbstractCommand
command, command_name, dev_cmd?, #initialize, parser
Constructor Details
This class inherits a constructor from Homebrew::AbstractCommand
Instance Method Details
#args ⇒ Homebrew::Cmd::UpgradeCmd::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.
9 |
# File 'sorbet/rbi/dsl/homebrew/cmd/upgrade_cmd.rbi', line 9 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.
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'cmd/upgrade.rb', line 126 def run # Deprecated since this is now the default behavior. odeprecated "`brew upgrade --ignore-pinned`" if args.ignore_pinned? formulae, casks = args.named.to_resolved_formulae_to_casks # If one or more formulae are specified, but no casks were # specified, we want to make note of that so we don't # try to upgrade all outdated casks. only_upgrade_formulae = formulae.present? && casks.blank? only_upgrade_casks = casks.present? && formulae.blank? upgrade_outdated_formulae(formulae) unless only_upgrade_casks upgrade_outdated_casks(casks) unless only_upgrade_formulae Cleanup.periodic_clean!(dry_run: args.dry_run?) Homebrew..(display_times: args.display_times?) end |