Class: ProjectGroup::GroupWrapper

Inherits:
DSLWrapper show all
Defined in:
lib/project_group/config.rb

Instance Attribute Summary collapse

Attributes inherited from DSLWrapper

#obj

Instance Method Summary collapse

Methods inherited from DSLWrapper

#initialize, #method_missing

Constructor Details

This class inherits a constructor from ProjectGroup::DSLWrapper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ProjectGroup::DSLWrapper

Instance Attribute Details

#configsObject

Returns the value of attribute configs.



19
20
21
# File 'lib/project_group/config.rb', line 19

def configs
  @configs
end

#localObject

Returns the value of attribute local.



20
21
22
# File 'lib/project_group/config.rb', line 20

def local
  @local
end

Instance Method Details

#name(name) ⇒ Object



37
38
# File 'lib/project_group/config.rb', line 37

def name(name)
end

#project(name, &b) ⇒ Object



31
32
33
34
35
36
# File 'lib/project_group/config.rb', line 31

def project(name,&b)
  self.project_names << name
  if block_given?
    configs.project(name,&b)
  end
end

#singlesObject



22
23
24
25
26
# File 'lib/project_group/config.rb', line 22

def singles
  project_names.map do |name|
    configs.projects.find { |x| x.name == name }
  end
end