Class: GitLab::CI::Lint::Configuration
- Inherits:
-
Object
- Object
- GitLab::CI::Lint::Configuration
- Defined in:
- lib/gitlab/ci/lint/configuration.rb
Instance Attribute Summary collapse
-
#gitlab_ci_file ⇒ Object
readonly
Returns the value of attribute gitlab_ci_file.
-
#gitlab_endpoint ⇒ Object
readonly
Returns the value of attribute gitlab_endpoint.
-
#gitlab_token ⇒ Object
readonly
Returns the value of attribute gitlab_token.
-
#log_file ⇒ Object
readonly
Returns the value of attribute log_file.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #variables ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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_file ⇒ Object (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_endpoint ⇒ Object (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_token ⇒ Object (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_file ⇒ Object (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 |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/gitlab/ci/lint/configuration.rb', line 5 def timeout @timeout end |
#values ⇒ Object (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
#variables ⇒ Object
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 |