Class: HerokuMigrator::CLI
- Inherits:
-
Thor
- Object
- Thor
- HerokuMigrator::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/heroku_migrator/cli.rb
Instance Method Summary collapse
Instance Method Details
#migrate(app) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/heroku_migrator/cli.rb', line 23 def migrate(app) @app = app provision_new_database maintenance do copy_database_contents promote_new_database end deprovision_old_database if yes?('Remove old database?') end |