Class: SystemHook

Inherits:
WebHook
  • Object
show all
Defined in:
app/models/hooks/system_hook.rb

Overview

Schema Information

Table name: web_hooks

id                      :integer          not null, primary key
url                     :string(2000)
project_id              :integer
created_at              :datetime
updated_at              :datetime
type                    :string           default("ProjectHook")
service_id              :integer
push_events             :boolean          default(TRUE), not null
issues_events           :boolean          default(FALSE), not null
merge_requests_events   :boolean          default(FALSE), not null
tag_push_events         :boolean          default(FALSE)
note_events             :boolean          default(FALSE), not null
enable_ssl_verification :boolean          default(TRUE)
build_events            :boolean          default(FALSE), not null
wiki_page_events        :boolean          default(FALSE), not null
token                   :string

Instance Method Summary collapse

Methods inherited from WebHook

#execute

Instance Method Details

#async_execute(data, hook_name) ⇒ Object


24
25
26
# File 'app/models/hooks/system_hook.rb', line 24

def async_execute(data, hook_name)
  Sidekiq::Client.enqueue(SystemHookWorker, id, data, hook_name)
end