lib/rundock/builder/backend_builder.rb in rundock-0.5.4 vs lib/rundock/builder/backend_builder.rb in rundock-0.5.7
- old
+ new
@@ -53,17 +53,17 @@
opts[:host] = @nodename
opts
end
def parse_backend_type
- if localhost? &&
- !@node_info[@nodename.to_sym][:ssh_opts][:port] &&
- !@node_info[@nodename.to_sym][:ssh_opts][:user] &&
- !@node_info[@nodename.to_sym][:ssh_opts][:ssh_config]
- backend_type = :local
- else
- backend_type = :ssh
- end
+ backend_type = if localhost? &&
+ !@node_info[@nodename.to_sym][:ssh_opts][:port] &&
+ !@node_info[@nodename.to_sym][:ssh_opts][:user] &&
+ !@node_info[@nodename.to_sym][:ssh_opts][:ssh_config]
+ :local
+ else
+ :ssh
+ end
backend_type
end
def localhost?