class WRKFLO::SSHStep
Public Instance Methods
run()
click to toggle source
# File lib/wrkflo/steps/ssh.rb, line 8 def run log "SSHing into #{config.host} at #{config.directory}" ssh_command = "ssh -t #{config.host} \\\"#{config.directory}; bash --login\\\"" `osascript -e 'tell application "Terminal" to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' -e 'tell application "Terminal" to do script "#{ssh_command}" in selected tab of the front window'` end