Class: Hellgrid::Project
- Inherits:
-
Object
- Object
- Hellgrid::Project
- Defined in:
- lib/hellgrid/project.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #dependency_matrix ⇒ Object
-
#initialize(root, path) ⇒ Project
constructor
A new instance of Project.
- #name ⇒ Object
Constructor Details
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/hellgrid/project.rb', line 5 def path @path end |
Instance Method Details
#dependency_matrix ⇒ Object
16 17 18 |
# File 'lib/hellgrid/project.rb', line 16 def dependency_matrix @dependency_matrix ||= specs.inject({}) { |h, spec| h.merge!(spec.name.to_s => spec.version.version) } end |
#name ⇒ Object
12 13 14 |
# File 'lib/hellgrid/project.rb', line 12 def name File.(path).gsub("#{File.(root)}/", '') end |