Class: TxghServer::Triggers::PushHandler

Inherits:
Handler
  • Object
show all
Defined in:
lib/txgh-server/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 TxghServer::Triggers::Handler

Instance Method Details

#executeObject



8
9
10
11
12
# File 'lib/txgh-server/triggers/push_handler.rb', line 8

def execute
  pusher.push_slug(resource_slug)
  repo.is_a?(Txgh::GithubRepo) ? update_github_status : update_gitlab_status
  respond_with(200, true)
end