Class: KapostDeploy::Plugins::DbMigrate
- Inherits:
-
Object
- Object
- KapostDeploy::Plugins::DbMigrate
- Defined in:
- lib/kapost_deploy/plugins/db_migrate.rb
Overview
After-promotion task to run rake db:migrate
Instance Method Summary collapse
- #after ⇒ Object
- #before ⇒ Object
-
#initialize(config, shell: KapostDeploy::Heroku::Shell.new(config.to)) ⇒ DbMigrate
constructor
A new instance of DbMigrate.
Constructor Details
#initialize(config, shell: KapostDeploy::Heroku::Shell.new(config.to)) ⇒ DbMigrate
Returns a new instance of DbMigrate.
9 10 11 12 |
# File 'lib/kapost_deploy/plugins/db_migrate.rb', line 9 def initialize(config, shell: KapostDeploy::Heroku::Shell.new(config.to)) self.shell = shell end |
Instance Method Details
#after ⇒ Object
17 18 19 |
# File 'lib/kapost_deploy/plugins/db_migrate.rb', line 17 def after shell.run("rake db:migrate") end |
#before ⇒ Object
14 15 |
# File 'lib/kapost_deploy/plugins/db_migrate.rb', line 14 def before end |