Class: Bundler::CLI::Package
- Inherits:
-
Object
- Object
- Bundler::CLI::Package
- Defined in:
- lib/bundler/cli/package.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Package
constructor
A new instance of Package.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Package
Returns a new instance of Package.
5 6 7 |
# File 'lib/bundler/cli/package.rb', line 5 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/bundler/cli/package.rb', line 3 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/package.rb', line 9 def run Bundler.ui.level = "error" if [:quiet] Bundler.settings[:path] = File.([:path]) if [:path] Bundler.settings[:cache_all_platforms] = ["all-platforms"] if .key?("all-platforms") Bundler.settings[:cache_path] = ["cache-path"] if .key?("cache-path") setup_cache_all install # TODO: move cache contents here now that all bundles are locked custom_path = Pathname.new([:path]) if [:path] Bundler.load.cache(custom_path) end |