Class: GDK::Services::GitlabWorkhorse

Inherits:
Required show all
Defined in:
lib/gdk/services/gitlab_workhorse.rb

Overview

GitLab Workhorse service

Instance Method Summary collapse

Methods inherited from Required

#enabled?

Methods inherited from Base

#enabled?, #env, #initialize, #procfile_entry, #ready_message

Constructor Details

This class inherits a constructor from GDK::Services::Base

Instance Method Details

#commandObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/gdk/services/gitlab_workhorse.rb', line 11

def command
  command = %W[/usr/bin/env PATH="#{workhorse_dir}:$PATH"]
  command << 'GEO_SECONDARY_PROXY=0' unless config.geo?
  command += %W[gitlab-workhorse -#{auth_type_flag} "#{auth_address}"]
  command += %W[-documentRoot "#{document_root}"]
  command += %W[-developmentMode -secretPath "#{secret_path}"]
  command += %W[-config "#{config_file}"]
  command += %W[-listenAddr "#{listen_address}"]
  command += %w[-logFormat json]
  command += %W[-prometheusListenAddr "#{prometheus_listen_addr}"] if config.prometheus.enabled?
  command += auth_backend_option

  command.join(' ')
end

#nameObject



7
8
9
# File 'lib/gdk/services/gitlab_workhorse.rb', line 7

def name
  'gitlab-workhorse'
end