lib/simple_deploy/stack/ssh.rb in simple_deploy-0.8.2 vs lib/simple_deploy/stack/ssh.rb in simple_deploy-0.9.0

- old
+ new

@@ -53,9 +53,15 @@ end def set_execute_command(args) command = args[:command] sudo = args[:sudo] + pty = args[:pty] + + if pty + @logger.debug "Setting pty to true." + @task.variables[:default_run_options] = { :pty => true } + end @logger.info "Setting command: '#{command}'." if sudo @task.load :string => "task :execute do sudo '#{command}'