Class: Perkins::Build::Data::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/perkins/build/data/env.rb

Defined Under Namespace

Classes: Group

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Env

Returns a new instance of Env.



22
23
24
# File 'lib/perkins/build/data/env.rb', line 22

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



20
21
22
# File 'lib/perkins/build/data/env.rb', line 20

def data
  @data
end

Instance Method Details

#varsObject



26
27
28
# File 'lib/perkins/build/data/env.rb', line 26

def vars
  travis_vars + settings_vars + config_vars
end

#vars_groupsObject



30
31
32
33
34
# File 'lib/perkins/build/data/env.rb', line 30

def vars_groups
  [Group.new('travis',   travis_vars),
   Group.new('repository settings', settings_vars),
   Group.new('.travis.yml', config_vars)]
end