class ProjectGroup::Single
Attributes
name[RW]
path[RW]
Public Instance Methods
needs_push?()
click to toggle source
# File lib/project_group/single.rb, line 15 def needs_push? !repo.pushed? end
repo()
click to toggle source
# File lib/project_group/single.rb, line 9 def repo Repo.new(:path => path) end
spec_output()
click to toggle source
# File lib/project_group/single.rb, line 22 def spec_output `cd #{path} && bundle exec rake spec` end
status()
click to toggle source
# File lib/project_group/single.rb, line 19 def status {:committed => !repo.changes?, :pushed => repo.pushed?} end
uncommitted_files()
click to toggle source
# File lib/project_group/single.rb, line 12 def uncommitted_files repo.changed_files.values.flatten.map { |x| OpenStruct.new(:relative_path => x) } end