summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-09 18:03:55 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-09 18:03:55 +0100
commitf5a225499d16c8185105251ea4f8e924dd5d55e7 (patch)
tree43db2ecf0999bbcd9637a3404c5c0d7887ca6f22
parentd4f96af0ce911768058567310fcf14ede99e0221 (diff)
downloadbundler-f5a225499d16c8185105251ea4f8e924dd5d55e7.tar.gz
Name variable consistenly
Like it is named in the other analogous methods.
-rw-r--r--lib/bundler/gem_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index 46a6643233..e1eb044553 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -98,13 +98,13 @@ module Bundler
protected
def rubygem_push(path)
- gem_command = %W[gem push #{path}]
- gem_command << "--key" << gem_key if gem_key
- gem_command << "--host" << allowed_push_host if allowed_push_host
+ cmd = %W[gem push #{path}]
+ cmd << "--key" << gem_key if gem_key
+ cmd << "--host" << allowed_push_host if allowed_push_host
unless allowed_push_host || Bundler.user_home.join(".gem/credentials").file?
raise "Your rubygems.org credentials aren't set. Run `gem push` to set them."
end
- sh_with_input(gem_command)
+ sh_with_input(cmd)
Bundler.ui.confirm "Pushed #{name} #{version} to #{gem_push_host}"
end