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.
6 7 8 |
# File 'lib/bundler/cli/package.rb', line 6 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/bundler/cli/package.rb', line 4 def @options end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/bundler/cli/package.rb', line 10 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 |