Class: AbtionScripts::Promote
- Defined in:
- lib/abtion_scripts/promote.rb
Constant Summary
Constants included from Colorize
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#app_names, #app_root, #bundler?, #ci?, help, #heroku, #heroku_app_name, inherited, #initialize, load_scripts_deferred, name, #rails?, run, #run_script, script_classes, script_names, scripts, #step, #system!, #yarn?
Methods included from Colorize
Constructor Details
This class inherits a constructor from AbtionScripts::Base
Class Method Details
.description ⇒ Object
2 3 4 |
# File 'lib/abtion_scripts/promote.rb', line 2 def self.description "Promote staging to production and run migrations on production" end |
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 |
# 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 |