Class: PrepKit::With
Instance Method Summary collapse
-
#initialize(parent, prepare) ⇒ With
constructor
A new instance of With.
- #sh(command) ⇒ Object
Methods inherited from Task
#action, #download, #test?, #upload, #with, #within
Constructor Details
#initialize(parent, prepare) ⇒ With
Returns a new instance of With.
3 4 5 6 |
# File 'lib/prep_kit/with.rb', line 3 def initialize(parent, prepare) @parent = parent @prepare = prepare end |
Instance Method Details
#sh(command) ⇒ Object
8 9 10 |
# File 'lib/prep_kit/with.rb', line 8 def sh(command) @parent.sh("#{@prepare}; #{command}") end |