Method: Foreplay::Engine::Remote::Check#list_commands

Defined in:
lib/foreplay/engine/remote/check.rb

#list_commands(step) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/foreplay/engine/remote/check.rb', line 35

def list_commands(step)
  commands = Foreplay::Engine::Step.new(step, instructions).build

  commands.each do |command|
    puts "#{host}#{INDENT * 2}#{command}" unless step['silent']
  end
end