Class: Takeoff::Stage::Heroku::PushToServer

Inherits:
Base
  • Object
show all
Defined in:
lib/takeoff/stage/heroku/push_to_server.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helpers

#branches_up_to_date?, #diff, #execute, #file_has_changed_locally?, #files_have_changed?, #latest_commit, #log

Constructor Details

This class inherits a constructor from Takeoff::Stage::Base

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
11
12
# File 'lib/takeoff/stage/heroku/push_to_server.rb', line 7

def call(env)
  log     "Pushing to server"
  execute "git push #{env[:server_remote]} #{env[:checkpoint_branch]}:master --force"

  @app.call(env)
end