Class: DotUsage::Command
- Inherits:
-
Object
- Object
- DotUsage::Command
- Defined in:
- lib/dot_usage.rb
Instance Method Summary collapse
-
#initialize(cmd) ⇒ Command
constructor
A new instance of Command.
- #run(options) ⇒ Object
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() if .yes run_without_prompt() else run_with_prompt() end end |