Class: PrepKit::With

Inherits:
Task
  • Object
show all
Defined in:
lib/prep_kit/with.rb

Instance Method Summary collapse

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