Class: Devpack::Gems
Overview
Loads requested gems from configuration
Instance Attribute Summary collapse
-
#missing ⇒ Object
readonly
Returns the value of attribute missing.
Instance Method Summary collapse
-
#initialize(config, glob = GemGlob.new) ⇒ Gems
constructor
A new instance of Gems.
- #load(silent: false) ⇒ Object
Methods included from Timeable
Constructor Details
Instance Attribute Details
#missing ⇒ Object (readonly)
Returns the value of attribute missing.
8 9 10 |
# File 'lib/devpack/gems.rb', line 8 def missing @missing end |
Instance Method Details
#load(silent: false) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/devpack/gems.rb', line 18 def load(silent: false) return [] if @config.requested_gems.nil? gems, time = timed { load_devpack } names = gems.map(&:first) summarize(gems, time) unless silent names end |