Module: Ci::HasVariable

Extended by:
ActiveSupport::Concern
Included in:
GroupVariable, NewHasVariable, PipelineScheduleVariable, PipelineVariable, Variable
Defined in:
app/models/concerns/ci/has_variable.rb

Instance Method Summary collapse

Instance Method Details

#to_runner_variableObject


33
34
35
36
37
38
39
# File 'app/models/concerns/ci/has_variable.rb', line 33

def to_runner_variable
  var_cache_key = to_runner_variable_cache_key

  return uncached_runner_variable unless var_cache_key

  ::Gitlab::SafeRequestStore.fetch(var_cache_key) { uncached_runner_variable }
end