Class: KapostDeploy::Plugins::DbMigrate

Inherits:
Object
  • Object
show all
Defined in:
lib/kapost_deploy/plugins/db_migrate.rb

Overview

After-promotion task to run rake db:migrate

Instance Method Summary collapse

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

#afterObject



17
18
19
# File 'lib/kapost_deploy/plugins/db_migrate.rb', line 17

def after
  shell.run("rake db:migrate")
end

#beforeObject



14
15
# File 'lib/kapost_deploy/plugins/db_migrate.rb', line 14

def before
end