Class: Gitlab::Ci::Config::External::Mapper::VariablesExpander

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/ci/config/external/mapper/variables_expander.rb

Overview

Handles variable expansion

Instance Method Summary collapse

Methods inherited from Base

#initialize, #process

Constructor Details

This class inherits a constructor from Gitlab::Ci::Config::External::Mapper::Base

Instance Method Details

#expand(data) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/gitlab/ci/config/external/mapper/variables_expander.rb', line 10

def expand(data)
  if data.is_a?(String)
    expand_variable(data)
  else
    transform_and_expand_variable(data)
  end
end