Method: Foreplay::Engine::Remote::Check#perform

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

#performObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/foreplay/engine/remote/check.rb', line 11

def perform
  steps.each do |step|
    puts "#{host}#{INDENT}#{(step['commentary'] || step['command']).yellow}" unless step['silent'] == true

    if step.key? 'key'
      list_file_contents step['key']
    else
      list_commands step
    end
  end

  ''
end