Class: Txgh::Handlers::Triggers::PushHandler

Inherits:
Handler
  • Object
show all
Defined in:
lib/txgh/handlers/triggers/push_handler.rb

Instance Attribute Summary

Attributes inherited from Handler

#branch, #logger, #project, #repo, #resource_slug

Instance Method Summary collapse

Methods inherited from Handler

handle_request, #initialize

Constructor Details

This class inherits a constructor from Txgh::Handlers::Triggers::Handler

Instance Method Details

#executeObject



6
7
8
9
10
# File 'lib/txgh/handlers/triggers/push_handler.rb', line 6

def execute
  ref = repo.api.get_ref(repo.name, branch)
  updater.update_resource(branch_resource, ref[:object][:sha])
  respond_with(200, true)
end