Permalink
Browse files

display app name when pushing/pulling

  • Loading branch information...
1 parent bdc2669 commit d574d63c43368bacbee9db9fc8152a72e9ffbe16 @pedro pedro committed Feb 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/heroku/command/mongo.rb
@@ -9,14 +9,14 @@ def initialize(*args)
end
def push
- display "THIS WILL REPLACE ALL DATA ON #{heroku_mongo_uri.host} WITH #{local_mongo_uri.host}"
+ display "THIS WILL REPLACE ALL DATA for #{app} ON #{heroku_mongo_uri.host} WITH #{local_mongo_uri.host}"
display "Are you sure? (y/n) ", false
return unless ask.downcase == 'y'
transfer(local_mongo_uri, heroku_mongo_uri)
end
def pull
- display "Replacing the database at #{local_mongo_uri.host} with #{heroku_mongo_uri.host}"
+ display "Replacing the #{app} db at #{local_mongo_uri.host} with #{heroku_mongo_uri.host}"
transfer(heroku_mongo_uri, local_mongo_uri)
end

0 comments on commit d574d63

Please sign in to comment.