Method: Foreplay::Engine::Remote#deploy
- Defined in:
- lib/foreplay/engine/remote.rb
#deploy ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/foreplay/engine/remote.rb', line 21 def deploy output = '' log "Connecting to #{host} on port #{port}", host: host # SSH connection session = start_session(host, user, ) log "Successfully connected to #{host} on port #{port}", host: host session.shell do |sh| steps.each { |step| output += Foreplay::Engine::Remote::Step.new(host, sh, step, instructions).execute } end session.close output end |