lib/fulmar/service/helper/common_helper.rb in fulmar-1.4.0 vs lib/fulmar/service/helper/common_helper.rb in fulmar-1.4.1
- old
+ new
@@ -24,10 +24,10 @@
def local_shell
storage['local_shell'] ||= new_shell(configuration[:local_path])
end
def remote_shell
- storage['remote_shell'] ||= new_shell(configuration[:remote_path], (configuration[:user] ? configuration[:user]+'@' : '')+configuration[:hostname])
+ storage['remote_shell'] ||= new_shell(configuration[:remote_path], configuration.ssh_user_and_host)
end
def file_sync
storage['file_sync'] ||= Fulmar::FileSync.create_transfer configuration
end