summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/cache.rb
diff options
context:
space:
mode:
authorCody Cutrer <cody@instructure.com>2014-09-08 22:26:08 -0600
committerCody Cutrer <cody@instructure.com>2014-12-23 11:04:38 -0700
commit288420b8069f07f0d11e8403128544ce0138a905 (patch)
treec9e9fb9a882dae87009a97a224e3db3e8617dc7c /lib/bundler/cli/cache.rb
parent17919e790cd8f6fb369d6afc81f0afec6fb5ad8b (diff)
downloadbundler-288420b8069f07f0d11e8403128544ce0138a905.tar.gz
implement all_platforms options for cache/package
so that a single cache directory can be used with multiple ruby versions
Diffstat (limited to 'lib/bundler/cli/cache.rb')
-rw-r--r--lib/bundler/cli/cache.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli/cache.rb b/lib/bundler/cli/cache.rb
index 653ead7f56..751cb80149 100644
--- a/lib/bundler/cli/cache.rb
+++ b/lib/bundler/cli/cache.rb
@@ -9,6 +9,7 @@ module Bundler
Bundler.definition.validate_ruby!
Bundler.definition.resolve_with_cache!
setup_cache_all
+ Bundler.settings[:cache_all_platforms] = options["all-platforms"] if options.key?("all-platforms")
Bundler.load.cache
Bundler.settings[:no_prune] = true if options["no-prune"]
Bundler.load.lock