2016-10-13 11:11:28 -04:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class Events
|
2016-11-04 07:57:23 -04:00
|
|
|
def initialize(project:, options:)
|
2016-10-13 11:11:28 -04:00
|
|
|
@project = project
|
2016-11-17 12:00:37 -05:00
|
|
|
@options = options
|
2016-10-13 11:11:28 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def issue_events
|
2016-11-17 12:00:37 -05:00
|
|
|
IssueEvent.new(project: @project, options: @options).fetch
|
2016-10-13 11:11:28 -04:00
|
|
|
end
|
2016-10-18 04:06:42 -04:00
|
|
|
|
2016-10-19 06:47:09 -04:00
|
|
|
def plan_events
|
2016-11-17 12:00:37 -05:00
|
|
|
PlanEvent.new(project: @project, options: @options).fetch
|
2016-10-19 06:47:09 -04:00
|
|
|
end
|
|
|
|
|
2016-10-20 04:08:53 -04:00
|
|
|
def code_events
|
2016-11-17 12:00:37 -05:00
|
|
|
CodeEvent.new(project: @project, options: @options).fetch
|
2016-10-20 04:08:53 -04:00
|
|
|
end
|
|
|
|
|
2016-10-20 10:20:04 -04:00
|
|
|
def test_events
|
2016-11-17 12:00:37 -05:00
|
|
|
TestEvent.new(project: @project, options: @options).fetch
|
2016-10-20 10:20:04 -04:00
|
|
|
end
|
|
|
|
|
2016-10-21 02:50:27 -04:00
|
|
|
def review_events
|
2016-11-17 12:00:37 -05:00
|
|
|
ReviewEvent.new(project: @project, options: @options).fetch
|
2016-10-21 02:50:27 -04:00
|
|
|
end
|
|
|
|
|
2016-10-21 05:33:37 -04:00
|
|
|
def staging_events
|
2016-11-17 12:00:37 -05:00
|
|
|
StagingEvent.new(project: @project, options: @options).fetch
|
2016-10-21 05:33:37 -04:00
|
|
|
end
|
|
|
|
|
2016-10-21 11:30:38 -04:00
|
|
|
def production_events
|
2016-11-17 12:00:37 -05:00
|
|
|
ProductionEvent.new(project: @project, options: @options).fetch
|
2016-10-18 04:06:42 -04:00
|
|
|
end
|
2016-10-13 11:11:28 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|