Class: Takeoff::Stage::PushToGithub

Inherits:
Base
  • Object
show all
Defined in:
lib/takeoff/stage/push_to_github.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



6
7
8
9
10
11
# File 'lib/takeoff/stage/push_to_github.rb', line 6

def call(env)
  log     "Pushing checkpoint branch to GitHub"
  execute "git push github #{env[:checkpoint_branch]}:#{env[:checkpoint_branch]} --force"

  @app.call(env)
end