Class: Takeoff::Stage::Heroku::VerifyServerNotAlreadyUpToDate

Inherits:
Base
  • Object
show all
Defined in:
lib/takeoff/stage/heroku/verify_server_not_already_up_to_date.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
13
# File 'lib/takeoff/stage/heroku/verify_server_not_already_up_to_date.rb', line 7

def call(env)
  if env[:deployed_commit] == env[:new_commit]
    raise "The server is already up to date."
  end

  @app.call(env)
end