Class: CobraCommander::Ruby::Bundle
- Inherits:
-
Object
- Object
- CobraCommander::Ruby::Bundle
- Defined in:
- lib/cobra_commander/ruby/bundle.rb
Overview
Calculates ruby bundler dependencies
Instance Method Summary collapse
Instance Method Details
#packages ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cobra_commander/ruby/bundle.rb', line 11 def packages specs.map do |spec| ::CobraCommander::Package.new( self, name: spec.name, path: Pathname.new(spec.loaded_from).dirname, dependencies: spec.dependencies.map(&:name) & specs.map(&:name) ) end end |