Class: ProjectGroup::Group

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/project_group/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/project_group/group.rb', line 12

def needs_push?
  singles.any? { |x| x.needs_push? }
end

#uncommitted_filesObject



9
10
11
# File 'lib/project_group/group.rb', line 9

def uncommitted_files
  singles.map { |x| x.uncommitted_files }.flatten
end