class AbtionScripts::Promote
Public Class Methods
description()
click to toggle source
# File lib/abtion_scripts/promote.rb, line 2 def self.description "Promote staging to production and run migrations on production" end
Public Instance Methods
run()
click to toggle source
# File lib/abtion_scripts/promote.rb, line 6 def run step "Promoting staging to production" do heroku "pipelines:promote", remote: :staging end step "Running migrations on production" do heroku "run rails db:migrate", remote: :production end end