Method: Bcupgrade.run
- Defined in:
- lib/bcupgrade.rb
.run(options, args, config) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bcupgrade.rb', line 9 def self.run(, args, config) cask = Cask.new(, args, config) unless cask.args.any? puts "\n==> Outdated cask...\n" BrewCask.output_outdated ignore = cask.list_ignore puts "\nNot upgrading pinned package:\n#{ignore}" unless ignore.empty? end update_casks = cask.upgrade_target if update_casks.any? cask.upgrade(update_casks) else puts "\nAlready up-to-date." end end |