Sha256: d5e5cd3f193be4f9ef742cef960d17acffadfa5acc33312740f57a39f98a0c07
Contents?: true
Size: 467 Bytes
Versions: 7
Compression:
Stored size: 467 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
7 entries across 7 versions & 1 rubygems