lib/ztk/ssh.rb in ztk-1.0.9 vs lib/ztk/ssh.rb in ztk-1.0.10

- old
+ new

@@ -203,10 +203,10 @@ # ssh = ZTK::SSH.new # ssh.config do |config| # config.user = ENV["USER"] # config.host_name = "127.0.0.1" # end - # puts ssh.exec("hostname -f").inspect + # puts ssh.exec("hostname").inspect def exec(command, options={}) options = OpenStruct.new({ :exit_code => 0, :silence => false }.merge(config.send(:table)).merge(options)) options.ui.logger.debug { "config=#{options.send(:table).inspect}" } options.ui.logger.debug { "options=#{options.send(:table).inspect}" }