Class: CobraCommander::Dependencies::Bundler
- Inherits:
-
Object
- Object
- CobraCommander::Dependencies::Bundler
- Defined in:
- lib/cobra_commander/dependencies/bundler.rb
Overview
Calculates ruby bundler dependencies
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #components ⇒ Object
- #dependencies ⇒ Object
-
#initialize(root) ⇒ Bundler
constructor
A new instance of Bundler.
Constructor Details
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
11 12 13 |
# File 'lib/cobra_commander/dependencies/bundler.rb', line 11 def path @path end |
Instance Method Details
#components ⇒ Object
22 23 24 25 26 |
# File 'lib/cobra_commander/dependencies/bundler.rb', line 22 def components components_source.specs.map do |spec| { path: spec.loaded_from, name: spec.name, dependencies: spec.dependencies.map(&:name) } end end |
#dependencies ⇒ Object
18 19 20 |
# File 'lib/cobra_commander/dependencies/bundler.rb', line 18 def dependencies lockfile.dependencies.values.map(&:name) end |