lib/bcupgrade.rb in bcupgrade-0.9.2 vs lib/bcupgrade.rb in bcupgrade-0.9.3
- old
+ new
@@ -7,18 +7,18 @@
module Bcupgrade
def self.run(options, args, config)
cask = Cask.new(options, args, config)
- unless cask.args.any?
+ unless args.uniq.any?
puts "\n==> Outdated cask...\n"
BrewCask.output_outdated
- ignore = cask.list_ignore
+ ignore = config.list_ignored_casks
puts "\nNot upgrading pinned package:\n#{ignore}" unless ignore.empty?
end
- update_casks = cask.upgrade_target
+ update_casks = cask.upgrade_targets
if update_casks.any?
cask.upgrade(update_casks)
else
puts "\nAlready up-to-date."
end