diff options
-rw-r--r-- | lib/bundler/cli.rb | 6 | ||||
-rw-r--r-- | spec/other/binstubs_spec.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index c7c6e0c4..e472c91f 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -336,14 +336,14 @@ module Bundler This command will install bundler generated binstubs of the [GEM] specified in the bin directory specified by --binstubs or the default location. D - method_option "binstubs", :type => :string, :lazy_default => "bin", :banner => + method_option "path", :type => :string, :lazy_default => "bin", :banner => "the directory to put the binstubs, defaults to ./bin" method_option "force", :type => :boolean, :default => false, :banner => "forces the writing of a binstub, even if it already exists" def binstubs(gem_name) Bundler.definition.validate_ruby! - Bundler.settings[:bin] = options["binstubs"] if options["binstubs"] - Bundler.settings[:bin] = nil if options["binstubs"] && options["binstubs"].empty? + Bundler.settings[:bin] = options["path"] if options["path"] + Bundler.settings[:bin] = nil if options["path"] && options["path"].empty? installer = Installer.new(Bundler.root, Bundler.definition) spec = installer.specs.find{|s| s.name == gem_name } raise GemNotFound, not_found_message(name, Bundler.load.specs) unless spec diff --git a/spec/other/binstubs_spec.rb b/spec/other/binstubs_spec.rb index 8fcc7910..e80747a5 100644 --- a/spec/other/binstubs_spec.rb +++ b/spec/other/binstubs_spec.rb @@ -68,14 +68,14 @@ describe "bundle binstubs <gem>" do end end - context "--binstubs" do + context "--path" do it "sets the binstubs dir" do install_gemfile <<-G source "file://#{gem_repo1}" gem "rack" G - bundle "binstubs rack --binstubs exec" + bundle "binstubs rack --path exec" expect(bundled_app("exec/rackup")).to exist end @@ -87,7 +87,7 @@ describe "bundle binstubs <gem>" do gem "rails" G - bundle "binstubs rack --binstubs exec" + bundle "binstubs rack --path exec" bundle :install expect(bundled_app("exec/rails")).to exist |