Skip to content

Commit

Permalink
Fix dump-for
Browse files Browse the repository at this point in the history
  • Loading branch information
codener committed Nov 11, 2013
1 parent 25dbf7c commit 5885db8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/dump-for
Expand Up @@ -14,13 +14,13 @@ catching_errors do
system "mkdir -p #{destination_directory}" # Ensure the destination directory exists system "mkdir -p #{destination_directory}" # Ensure the destination directory exists
destination_path = "#{destination_directory}/#{stage}.dump" destination_path = "#{destination_directory}/#{stage}.dump"


puts "Downloading dump_for_download..." puts "Downloading dump_for_download ..."
system "scp #{config.user}@#{config.server}:#{source_path} #{destination_path}" system "scp #{config.user}@#{config.primary_server}:#{source_path} #{destination_path}"
puts puts "Dumped the #{stage.upcase} database to RAILS_ROOT/tmp/#{stage}.dump"
puts "Dumped the #{stage.upcase} database to: #{File.basename config.root}/tmp/#{stage}.dump"


# source dump if option was given # source dump if option was given
if ARGV.include?("-s") if ARGV.include?("-s")
puts
puts "Sourcing dump into development database..." puts "Sourcing dump into development database..."
success = DumpLoader.new([destination_path]).execute success = DumpLoader.new([destination_path]).execute
if success if success
Expand Down
2 changes: 1 addition & 1 deletion lib/geordi/version.rb
@@ -1,3 +1,3 @@
module Geordi module Geordi
VERSION = '0.16.2' VERSION = '0.16.3'
end end

0 comments on commit 5885db8

Please sign in to comment.