summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <rubyfy@dev.buetow.org>2015-10-28 09:47:45 +0000
committerPaul Buetow <rubyfy@dev.buetow.org>2015-10-28 09:47:45 +0000
commitbc16abddf658210932b58a41fe8ee5c5d4a9f3d7 (patch)
tree14a1b6356ad235e2f6e632ab9909bcd2c2209592
parentd562d0ea3236d7863ef2ea5da408df0330a3720c (diff)
Fix
-rwxr-xr-xrubyfy.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/rubyfy.rb b/rubyfy.rb
index d47299a..a4de5a0 100755
--- a/rubyfy.rb
+++ b/rubyfy.rb
@@ -111,7 +111,6 @@ private
def run_command(server, user=ENV["USER"], pcond=nil, command="id", background=false, root=false, script=nil)
log(:VERBOSE,"#{server}::Connecting")
- command = nil
sudo = root ? "sudo " : ""
if background
nohup = "nohup "
@@ -120,7 +119,6 @@ private
nohup = nohup_end = ""
end
Net::SSH.start(server, user) do |ssh|
- exec_command = nil
if script
log(:VERBOSE, "#{server}::Using script #{script} (command will be overwritten)")
basename = File.basename(script)