Class: Bundler::CLI::Cache
- Inherits:
-
Object
- Object
- Bundler::CLI::Cache
- Defined in:
- lib/bundler/cli/cache.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Cache
constructor
A new instance of Cache.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Cache
Returns a new instance of Cache.
5 6 7 |
# File 'lib/bundler/cli/cache.rb', line 5 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/bundler/cli/cache.rb', line 4 def @options end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bundler/cli/cache.rb', line 9 def run Bundler.definition.validate_ruby! Bundler.definition.resolve_with_cache! setup_cache_all Bundler.settings[:cache_all_platforms] = ["all-platforms"] if .key?("all-platforms") Bundler.load.cache Bundler.settings[:no_prune] = true if ["no-prune"] Bundler.load.lock rescue GemNotFound => e Bundler.ui.error(e.) Bundler.ui.warn "Run `bundle install` to install missing gems." exit 1 end |