lib/geordi/remote.rb in geordi-4.1.1 vs lib/geordi/remote.rb in geordi-4.2.0
- old
+ new
@@ -29,13 +29,14 @@
puts
selected_server
end
def dump(options = {})
+ database = options[:database] ? " #{options[:database]}" : ''
# Generate dump on the server
shell options.merge({
- remote_command: "dumple #{@config.env} --for_download",
+ remote_command: "dumple #{@config.env}#{database} --for_download",
})
destination_directory = File.join(@config.root, 'tmp')
FileUtils.mkdir_p destination_directory
destination_path = File.join(destination_directory, "#{@stage}.dump")
@@ -43,10 +44,10 @@
Interaction.note "Downloading remote dump to #{relative_destination} ..."
server = @config.primary_server
Util.run!("scp -C #{@config.user(server)}@#{server}:#{REMOTE_DUMP_PATH} #{destination_path}")
- Interaction.success "Dumped the #{@stage} database to #{relative_destination}."
+ Interaction.success "Dumped the#{database} #{@stage} database to #{relative_destination}."
destination_path
end
def console(options = {})