Welcome to mirror list, hosted at ThFree Co, Russian Federation.

expandable_variable_generator.rb « downstream « variables « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6690e9f1c1f2fb6b4a3a4cbc000362b94c31b101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Ci
    module Variables
      module Downstream
        class ExpandableVariableGenerator < Base
          def for(item)
            expanded_value = ::ExpandVariables.expand(item.value, context.all_bridge_variables)

            [{ key: item.key, value: expanded_value }]
          end
        end
      end
    end
  end
end