lib/datacenter/shell/remote.rb in datacenter-0.4.4 vs lib/datacenter/shell/remote.rb in datacenter-0.5.0

- old
+ new

@@ -5,11 +5,11 @@ def initialize(*args) @args = args end def open - @session ||= Net::SSH.start *args + @session ||= Net::SSH.start(*args) end def close if session && !session.closed? session.close @@ -24,10 +24,10 @@ self.class.open(*args) { |shell| shell.run command, options } end end def self.open(*args) - shell = new *args + shell = new(*args) shell.open yield shell ensure shell.close end \ No newline at end of file