Module: Commands::Heroku
- Included in:
- Heroploy::CheckTaskLib, Heroploy::EnvTaskLib
- Defined in:
- lib/heroploy/commands/heroku.rb
Instance Method Summary collapse
- #heroku_exec(cmd, app_name) ⇒ Object
- #heroku_migrate(app_name) ⇒ Object
- #heroku_run(cmd, app_name) ⇒ Object
Instance Method Details
#heroku_exec(cmd, app_name) ⇒ Object
5 6 7 |
# File 'lib/heroploy/commands/heroku.rb', line 5 def heroku_exec(cmd, app_name) Shell.exec "heroku #{cmd} --app #{app_name}" end |
#heroku_migrate(app_name) ⇒ Object
13 14 15 16 17 |
# File 'lib/heroploy/commands/heroku.rb', line 13 def heroku_migrate(app_name) Bundler.with_clean_env do heroku_run("rake db:migrate", app_name) end end |
#heroku_run(cmd, app_name) ⇒ Object
9 10 11 |
# File 'lib/heroploy/commands/heroku.rb', line 9 def heroku_run(cmd, app_name) heroku_exec("run #{cmd}", app_name) end |