Class: Legendary::Gems
- Inherits:
-
Object
- Object
- Legendary::Gems
- Includes:
- Enumerable
- Defined in:
- lib/legendary/gems.rb
Instance Attribute Summary collapse
-
#bundler ⇒ Object
Returns the value of attribute bundler.
Instance Method Summary collapse
- #definitions ⇒ Object
- #each ⇒ Object
-
#initialize ⇒ Gems
constructor
A new instance of Gems.
Constructor Details
#initialize ⇒ Gems
Returns a new instance of Gems.
10 11 12 |
# File 'lib/legendary/gems.rb', line 10 def initialize @bundler = Bundler.load end |
Instance Attribute Details
#bundler ⇒ Object
Returns the value of attribute bundler.
5 6 7 |
# File 'lib/legendary/gems.rb', line 5 def bundler @bundler end |
Instance Method Details
#definitions ⇒ Object
22 23 24 25 26 27 |
# File 'lib/legendary/gems.rb', line 22 def definitions # TODO: locking from gemsurance @definitions ||= Bundler.definition(true).tap do |definition| definition.resolve_remotely! end end |
#each ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/legendary/gems.rb', line 14 def each specs.each do |spec| yield Legendary::Info.new(spec, dependencies, definitions) end end |