-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.rb
74 lines (63 loc) · 2.23 KB
/
environment.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
require 'dotenv'
Dotenv.load
ENV['RACK_ENV'] ||= 'development'
SERVER_URL = ENV.fetch('SERVER_URL')
GITLAB_SYSTEM_POST_HOOK = "/gitlab/hooks/system"
GITLAB_PROJECT_POST_HOOK = "/gitlab/hooks/project"
require 'yaml'
require 'pry'
require './config/initializers/database'
# require './config/initializers/datadog'
require './lib/master_config'
require './lib/config_file_loader'
require './lib/collectors/github/issue_assigner'
require './lib/collectors/github/client'
require './lib/collectors/github/handler'
# Dir[File.expand_path('../client/*.rb', __FILE__)].each { |f| require f }
require './lib/collectors/gitlab/access'
require './lib/collectors/gitlab/project'
require './lib/collectors/gitlab/projects'
require './lib/collectors/gitlab/branches'
require './lib/collectors/gitlab/system_hooks'
require './lib/collectors/gitlab/system_hooks_sync'
require './lib/collectors/gitlab/project_hooks'
require './lib/collectors/gitlab/project_hooks_sync'
require './lib/collectors/gitlab/merge_requests'
require './lib/collectors/gitlab/merge_request'
require './lib/collectors/gitlab/notes'
require './lib/collectors/gitlab/pipelines'
require './lib/collectors/gitlab/pipeline'
require './lib/collectors/gitlab/jobs'
require './lib/collectors/gitlab/job_trace'
require './lib/collectors/gitlab/handler'
require './lib/collectors/gitlab/labels'
require './lib/collectors/gitlab/users'
require './lib/models/job'
require './lib/models/pipeline'
require './lib/models/merge_request'
require './lib/models/note'
require './lib/models/branch'
require './lib/models/project'
require './lib/models/system_hook'
require './lib/models/project_hook'
require './lib/models/user'
require './config/initializers/sidekiq'
require './lib/workers/projects'
require './lib/workers/branches'
require './lib/workers/branch'
require './lib/workers/project'
require './lib/workers/pipelines'
require './lib/workers/pipeline'
require './lib/workers/merge_requests'
require './lib/workers/merge_request'
require './lib/workers/jobs'
require './lib/workers/job'
require './lib/workers/notes'
require './lib/workers/job_trace'
require './lib/workers/maint'
require './lib/workers/project_labels'
require './lib/workers/users'
module LabStats
end
# TODO: Move to schedule
# Workers::Maint.perform_async