Method: Foreplay::Engine::Step#build
- Defined in:
- lib/foreplay/engine/step.rb
#build ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/foreplay/engine/step.rb', line 9 def build # Each step can be (1) a command or (2) a series of values to add to a file if step.key?('key') instructions.key?(step['key']) ? build_commands(step, instructions) : [] else # ...or just execute the command specified [step['command']] end end |