Sha256: 55bdde6434e43c28e7a858217acd711746552e5266b8c27ff5d78a1d5745ecff
Contents?: true
Size: 766 Bytes
Versions: 4
Compression:
Stored size: 766 Bytes
Contents
module Space module Model class Repo autoload :Bundle, 'space/model/repo/bundle' autoload :Dependency, 'space/model/repo/dependency' autoload :Git, 'space/model/repo/git' attr_reader :project, :path, :git, :bundle def initialize(project, path) @project = project @path = File.expand_path(path) @git = Git.new(self) @bundle = Bundle.new(self, project.repos) end def name @name ||= File.basename(path) end def number @number ||= project.number(name) end def ref git.commit end def deps bundle.deps end def refresh [git, bundle].each(&:refresh) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
space-0.0.9 | lib/space/model/repo.rb |
space-0.0.8 | lib/space/model/repo.rb |
space-0.0.7 | lib/space/model/repo.rb |
space-0.0.6 | lib/space/model/repo.rb |