Sha256: b998419f68b3f30dd72d2657ba97a07bba12e2617b10e8e6476082c4838b5e50
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true require "kapost_deploy/heroku/shell" module KapostDeploy module Plugins # After-promotion task to run rake db:migrate class DbMigrate def initialize(config, shell: KapostDeploy::Heroku::Shell.new(config.to)) self.shell = shell end def before end def after shell.run("rake db:migrate") end private attr_accessor :shell end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kapost_deploy-0.2.0 | lib/kapost_deploy/plugins/db_migrate.rb |