aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/pull.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-04 10:31:49 +0200
committerGitHub2016-10-04 10:31:49 +0200
commitcafe1497808ef1ddb002061665ad606aa2340d10 (patch)
tree3020d12117601676f9afdf2cdefa86785546705b /Library/Homebrew/dev-cmd/pull.rb
parent881fdcd25ebe6b91691295034a8d9fa2dfc6f158 (diff)
parent9690c94f9dcc78d2a00093e21be412c70776541c (diff)
downloadbrew-cafe1497808ef1ddb002061665ad606aa2340d10.tar.bz2
Merge pull request #1145 from reitermarkus/module-function
Use `module_function` for `Homebrew` module.
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
-rw-r--r--Library/Homebrew/dev-cmd/pull.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb
index 857c55993..7e6e86a85 100644
--- a/Library/Homebrew/dev-cmd/pull.rb
+++ b/Library/Homebrew/dev-cmd/pull.rb
@@ -40,6 +40,8 @@ require "version"
require "pkg_version"
module Homebrew
+ module_function
+
def pull
odie "You meant `git pull --rebase`." if ARGV[0] == "--rebase"
@@ -235,8 +237,6 @@ module Homebrew
str.force_encoding("UTF-8") if str.respond_to?(:force_encoding)
end
- private
-
def publish_changed_formula_bottles(_tap, changed_formulae_names)
if ENV["HOMEBREW_DISABLE_LOAD_FORMULA"]
raise "Need to load formulae to publish them!"