lib/rundock/builder/backend_builder.rb in rundock-1.0.6 vs lib/rundock/builder/backend_builder.rb in rundock-1.0.7

- old
+ new

@@ -46,11 +46,11 @@ @node_info[@nodename.to_sym][:ssh_opts][opt] = @options[oo] end end # replace cli ssh options if exists - %w(:user :key :port :ssh_config :ask_password :sudo).each { |o| @node_info[@nodename.to_sym][:ssh_opts][o] = @options[o] if @options[o] } + %i[user key port ssh_config ask_password sudo].each { |o| @node_info[@nodename.to_sym][:ssh_opts][o] = @options[o] if @options[o] } opts[:host] = @nodename opts end @@ -60,9 +60,10 @@ !@node_info[@nodename.to_sym][:ssh_opts][:user] && !@node_info[@nodename.to_sym][:ssh_opts][:ssh_config] :local else :ssh + end backend_type end