lib/fourchette/heroku.rb in fourchette-0.1.1 vs lib/fourchette/heroku.rb in fourchette-0.1.2
- old
+ new
@@ -65,11 +65,11 @@
def copy_pg from, to
if pg_enabled?(from)
logger.info "Copying Postgres's data from #{from} to #{to}"
backup = Fourchette::Pgbackups.new
- backup.copy(from, to)
+ logger.info backup.copy(from, to)
else
logger.info "Postgres not enabled on #{from}. Skipping data copy."
end
end
@@ -90,9 +90,9 @@
environments
end
def pg_enabled?(app)
client.addon.list(app).any? do |addon|
- addon['addon_service']['name'] == 'heroku-postgresql'
+ addon['addon_service']['name'] == 'Heroku Postgres'
end
end
end