Class: DotUsage::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/dot_usage.rb

Instance Method Summary collapse

Constructor Details

#initialize(cmd) ⇒ Command

Returns a new instance of Command.



69
70
71
# File 'lib/dot_usage.rb', line 69

def initialize(cmd)
  @cmd = cmd
end

Instance Method Details

#run(options) ⇒ Object



73
74
75
76
77
78
79
# File 'lib/dot_usage.rb', line 73

def run(options)
  if options.yes
    run_without_prompt(options)
  else
    run_with_prompt(options)
  end
end