Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

namespace for safety

  • Loading branch information...
commit 0620184a19944ab6f5cc75a9b06e3709ddf96fca 1 parent 83e5236
@ddollar authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 init.rb
View
6 init.rb
@@ -27,8 +27,8 @@ def transfer
validate_transfer_db from_url
validate_transfer_db to_url
- puts "Source database: #{pretty_name(from)}"
- puts "Target database: #{pretty_name(to)}"
+ puts "Source database: #{transfer_pretty_name(from)}"
+ puts "Target database: #{transfer_pretty_name(to)}"
return unless confirm_command
@@ -71,7 +71,7 @@ def pg_restore_command(url)
%{ env PGPASSWORD=#{uri.password} pg_restore --verbose --clean --no-acl --no-owner #{user} -h #{host} -d #{database} -p #{port} }
end
- def pretty_name(db_name)
+ def transfer_pretty_name(db_name)
if (uri = URI.parse(db_name)).scheme
"#{uri.path[1..-1]} on #{uri.host||"localhost"}:#{uri.port||5432}"
else
Please sign in to comment.
Something went wrong with that request. Please try again.