Class: Terraspace::Cloud::Vcs::CiEnv

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Includes:
Util::Logging
Defined in:
lib/terraspace/cloud/vcs/ci_env.rb

Instance Method Summary collapse

Methods included from Util::Logging

#logger

Instance Method Details

#varsObject



6
7
8
9
10
11
12
13
# File 'lib/terraspace/cloud/vcs/ci_env.rb', line 6

def vars
  klass = Terraspace::Cloud::Ci.detect
  if klass
    klass.new.vars.compact # remove items with nil values
  else
    {}
  end
end