Module: Recap::Tasks::Console
- Extended by:
- Support::Namespace
- Defined in:
- lib/recap/tasks/console/ssh.rb
Instance Method Summary collapse
Instance Method Details
#run_interactively(command = "bash", server = nil) ⇒ Object
25 26 27 28 29 |
# File 'lib/recap/tasks/console/ssh.rb', line 25 def run_interactively(command="bash", server=nil) server ||= find_servers_for_task(current_task).first setup = "cd #{deploy_to} && export PATH=./bin:$PATH" exec %Q{ssh #{server.host} -t 'sudo su - #{application} -c "#{setup} && #{command}"'} end |