aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-12-28 21:52:16 -0500
committerTerence Lee <hone02@gmail.com>2012-12-28 21:52:16 -0500
commitfd734f676ba1bf0e198d7ea948433f29f7dbca6e (patch)
tree8e99e0c1fcca68e920057b10575f6a7aa5f29d1a
parentcb7fe5e28aab848ded6c8d4076bb64a5ea0a421e (diff)
downloadbundler-fd734f676ba1bf0e198d7ea948433f29f7dbca6e.tar.gz
tell people how to use binstubs --force if skipping
-rw-r--r--lib/bundler/installer.rb2
-rw-r--r--spec/other/binstubs_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index ce069a14..fbe5833b 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -140,7 +140,7 @@ module Bundler
if File.exists?(binstub_path) && !options[:force]
write = false
Bundler.ui.warn <<-MSG
- Skipping #{executable}, since it already exists.
+ Skipping #{executable} since it already exists. Pass --force to overwrite.
MSG
end
diff --git a/spec/other/binstubs_spec.rb b/spec/other/binstubs_spec.rb
index 9654ba72..8fcc7910 100644
--- a/spec/other/binstubs_spec.rb
+++ b/spec/other/binstubs_spec.rb
@@ -110,7 +110,7 @@ describe "bundle binstubs <gem>" do
expect(bundled_app("bin/rackup")).to exist
expect(File.read(bundled_app("bin/rackup"))).to eq("OMG")
- expect(out).to eq("Skipping rackup, since it already exists.")
+ expect(out).to eq("Skipping rackup since it already exists. Pass --force to overwrite.")
end
context "when using --force" do