Class: GitLab::CI::Lint::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/lint/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
14
# File 'lib/gitlab/ci/lint/configuration.rb', line 7

def initialize
  @gitlab_endpoint = ENV["GITLAB_ENDPOINT"]
  @gitlab_token = ENV["GITLAB_TOKEN"]
  @gitlab_ci_file = ENV["GITLAB_CI_FILE"]
  @timeout = ENV["TIMEOUT"]
  @values = ENV["VALUES"]
  @log_file = ENV["LOG_FILE"]
end

Instance Attribute Details

#gitlab_ci_fileObject (readonly)

Returns the value of attribute gitlab_ci_file.



5
6
7
# File 'lib/gitlab/ci/lint/configuration.rb', line 5

def gitlab_ci_file
  @gitlab_ci_file
end

#gitlab_endpointObject (readonly)

Returns the value of attribute gitlab_endpoint.



5
6
7
# File 'lib/gitlab/ci/lint/configuration.rb', line 5

def gitlab_endpoint
  @gitlab_endpoint
end

#gitlab_tokenObject (readonly)

Returns the value of attribute gitlab_token.



5
6
7
# File 'lib/gitlab/ci/lint/configuration.rb', line 5

def gitlab_token
  @gitlab_token
end

#log_fileObject (readonly)

Returns the value of attribute log_file.



5
6
7
# File 'lib/gitlab/ci/lint/configuration.rb', line 5

def log_file
  @log_file
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/gitlab/ci/lint/configuration.rb', line 5

def timeout
  @timeout
end

#valuesObject (readonly)

Returns the value of attribute values.



5
6
7
# File 'lib/gitlab/ci/lint/configuration.rb', line 5

def values
  @values
end

Instance Method Details

#variablesObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/gitlab/ci/lint/configuration.rb', line 16

def variables
  return {
    "gitlab_endpoint" => @gitlab_endpoint,
    "gitlab_token" => @gitlab_token,
    "gitlab_ci_file" => @gitlab_ci_file,
    "timeout" => @timeout,
    "values" => @values,
    "log_file" => @log_file
  }
end