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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, vars) ⇒ Group

Returns a new instance of Group.



11
12
13
# File 'lib/perkins/build/data/env.rb', line 11

def initialize(source, vars)
  super(source, vars || [])
end

Instance Attribute Details

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



10
11
12
# File 'lib/perkins/build/data/env.rb', line 10

def source
  @source
end

#varsObject

Returns the value of attribute vars

Returns:

  • (Object)

    the current value of vars



10
11
12
# File 'lib/perkins/build/data/env.rb', line 10

def vars
  @vars
end

Instance Method Details

#announce?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/perkins/build/data/env.rb', line 15

def announce?
  source != 'travis' && vars.length > 0
end