lib/geordi/remote.rb in geordi-4.1.0 vs lib/geordi/remote.rb in geordi-4.1.1
- old
+ new
@@ -41,11 +41,11 @@
destination_path = File.join(destination_directory, "#{@stage}.dump")
relative_destination = Pathname.new(destination_path).relative_path_from Pathname.new(@config.root)
Interaction.note "Downloading remote dump to #{relative_destination} ..."
server = @config.primary_server
- Util.system! "scp -C #{@config.user(server)}@#{server}:#{REMOTE_DUMP_PATH} #{destination_path}"
+ Util.run!("scp -C #{@config.user(server)}@#{server}:#{REMOTE_DUMP_PATH} #{destination_path}")
Interaction.success "Dumped the #{@stage} database to #{relative_destination}."
destination_path
end
@@ -72,10 +72,10 @@
remote_command = "cd #{@config.remote_root} && #{@config.shell}"
remote_command << " -c '#{options[:remote_command]}'" if options[:remote_command]
Interaction.note 'Connecting to ' + server.to_s
- Util.system! 'ssh', "#{@config.user(server)}@#{server}", '-t', remote_command
+ Util.run!(['ssh', "#{@config.user(server)}@#{server}", '-t', remote_command])
end
end
end