lib/bcupgrade/cask.rb in bcupgrade-0.9.2 vs lib/bcupgrade/cask.rb in bcupgrade-0.9.3
- old
+ new
@@ -2,12 +2,10 @@
require 'yaml'
module Bcupgrade
class Cask
- attr_reader :args
-
def initialize(options, args, config)
@config = config
@options = options
@args = args.uniq
@outdated = BrewCask.outdated.split(/\n/)
@@ -22,25 +20,21 @@
puts "\n==> Upgrade #{cask}"
BrewCask.install(cask)
end
end
- def list_ignore
- @config.ignore.join(' ')
- end
-
- def upgrade_target
+ def upgrade_targets
if @args.any?
@args
else
- exclude_ignore_casks(@outdated)
+ exclude_ignored_casks(@outdated)
end
end
private
- def exclude_ignore_casks(casks)
- casks - @config.ignore
+ def exclude_ignored_casks(casks)
+ casks - @config.ignored_casks
end
def prompt_answer_yes?(cask)
input = if @options[:install]
'y'