Class: Bundler::CLI::Cache
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/bundler/cli/cache.rb |
Class Method Summary
- .new(options) ⇒ Cache constructor
Instance Attribute Summary
- #options readonly
Instance Method Summary
- #run
- #install private
- #setup_cache_all private
Constructor Details
.new(options) ⇒ Cache
# File 'lib/bundler/cli/cache.rb', line 7
def initialize( ) @options = end
Instance Attribute Details
#options (readonly)
[ GitHub ]# File 'lib/bundler/cli/cache.rb', line 5
attr_reader :
Instance Method Details
#install (private)
[ GitHub ]#run
[ GitHub ]# File 'lib/bundler/cli/cache.rb', line 11
def run Bundler.ui.level = "warn" if [:quiet] Bundler.settings.set_command_option_if_given :path, [:path] Bundler.settings.set_command_option_if_given :cache_path, ["cache-path"] setup_cache_all install # TODO: move cache contents here now that all bundles are locked custom_path = Bundler.settings[:path] if [:path] Bundler.settings.temporary(:cache_all_platforms => ["all-platforms"]) do Bundler.load.cache(custom_path) end end
#setup_cache_all (private)
[ GitHub ]# File 'lib/bundler/cli/cache.rb', line 37
def setup_cache_all all = .fetch(:all, Bundler.feature_flag.cache_all? || nil) Bundler.settings.set_command_option_if_given :cache_all, all end