class Takeoff::Stage::PointCheckpointToDevelopment
Public Instance Methods
call(env)
click to toggle source
# File lib/takeoff/stage/point_checkpoint_to_development.rb, line 6 def call(env) return @app.call(env) if env[:development_branch] == env[:checkpoint_branch] log "Pointing checkpoint branch to development branch" execute "git checkout #{env[:checkpoint_branch]}" begin execute "git reset --hard #{env[:development_branch]}" ensure execute "git checkout #{env[:development_branch]}" end @app.call(env) end