Class: TestHookService

Inherits:
Object
  • Object
show all
Defined in:
app/services/test_hook_service.rb

Instance Method Summary collapse

Instance Method Details

#execute(hook, current_user) ⇒ Object


2
3
4
5
# File 'app/services/test_hook_service.rb', line 2

def execute(hook, current_user)
  data = Gitlab::PushDataBuilder.build_sample(hook.project, current_user)
  hook.execute(data, 'push_hooks')
end