Permalink
Browse files

namespace for safety

  • Loading branch information...
1 parent 83e5236 commit 0620184a19944ab6f5cc75a9b06e3709ddf96fca @ddollar committed May 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 init.rb
View
@@ -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

0 comments on commit 0620184

Please sign in to comment.