aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-02-12 13:25:37 +0000
committerMike McQuaid2016-02-15 08:54:03 +0000
commit775c4eedd7f6342ccfe7fe802a5935cb78ab050d (patch)
treed79b59ed969608b11d413288d03e21c32f306857 /Library
parentb389953f5b1b0ec98c069f155c280d60b94eeafb (diff)
downloadbrew-775c4eedd7f6342ccfe7fe802a5935cb78ab050d.tar.bz2
Promote update-bash to the default updater.
Also, rename the existing updater to `update-ruby` to allow using as a fallback. It will eventually be removed. Closes Homebrew/homebrew#49109. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update-ruby.rb (renamed from Library/Homebrew/cmd/update.rb)2
-rw-r--r--Library/Homebrew/cmd/update.sh (renamed from Library/Homebrew/cmd/update-bash.sh)2
-rw-r--r--Library/Homebrew/test/test_updater.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update-ruby.rb
index f93224c8d..98294bca8 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update-ruby.rb
@@ -6,7 +6,7 @@ require "formulary"
require "descriptions"
module Homebrew
- def update
+ def update_ruby
unless ARGV.named.empty?
abort <<-EOS.undent
This command updates brew itself, and does not take formula names.
diff --git a/Library/Homebrew/cmd/update-bash.sh b/Library/Homebrew/cmd/update.sh
index 4a0a2699c..d9226cfb9 100644
--- a/Library/Homebrew/cmd/update-bash.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -250,7 +250,7 @@ pull() {
trap - SIGINT
}
-homebrew-update-bash() {
+homebrew-update() {
local option
local DIR
local UPSTREAM_BRANCH
diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb
index 16efdaa1d..f84048b52 100644
--- a/Library/Homebrew/test/test_updater.rb
+++ b/Library/Homebrew/test/test_updater.rb
@@ -1,5 +1,5 @@
require "testing_env"
-require "cmd/update"
+require "cmd/update-ruby"
require "formula_versions"
require "yaml"