Class: ProjectGroup::Group
- Inherits:
-
Object
- Object
- ProjectGroup::Group
- Includes:
- FromHash
- Defined in:
- lib/project_group/group.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/project_group/group.rb', line 4 def name @name end |
Instance Method Details
#<<(path) ⇒ Object
6 7 8 |
# File 'lib/project_group/group.rb', line 6 def <<(path) self.singles << Single.new(:path => path) end |
#needs_push? ⇒ Boolean
12 13 14 |
# File 'lib/project_group/group.rb', line 12 def needs_push? singles.any? { |x| x.needs_push? } end |
#uncommitted_files ⇒ Object
9 10 11 |
# File 'lib/project_group/group.rb', line 9 def uncommitted_files singles.map { |x| x.uncommitted_files }.flatten end |