lib/workers/system.rb in quorum-0.8.0 vs lib/workers/system.rb in quorum-0.8.1
- old
+ new
@@ -51,10 +51,10 @@
# Execute command on remote machine.
#
def self.execute_ssh
Net::SSH.start(@ssh_host, @ssh_user, @ssh_options) do |ssh|
ssh.open_channel do |ch|
- ch.exec(cmd) do |ch, success|
+ ch.exec(@cmd) do |ch, success|
if success
# Capture STDOUT from ch.exec()
if @stdout
ch.on_data do |ch, data|
@out = data