aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-06 11:48:36 -0700
committerAdam Vandenberg2010-07-08 22:41:51 -0700
commit696e49e87a2b50639ab9e7fc983fca60bce0bfec (patch)
tree05bc6d42e911c775143f25ff28b866c6c453b1c6 /Library/Homebrew/global.rb
parent6b1a8be58e6bf903a6442dee99de373a5ae89dbd (diff)
downloadbrew-696e49e87a2b50639ab9e7fc983fca60bce0bfec.tar.bz2
Move exceptions from global to utils; remove duplicate defintions
Diffstat (limited to 'Library/Homebrew/global.rb')
-rw-r--r--Library/Homebrew/global.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 92689d0ff..31b237bb1 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -41,40 +41,3 @@ HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY
RECOMMENDED_LLVM = 2206
RECOMMENDED_GCC_40 = 5493
RECOMMENDED_GCC_42 = (MACOS_VERSION >= 10.6) ? 5646 : 5577
-
-
-class ExecutionError <RuntimeError
- attr :exit_status
- attr :command
-
- def initialize cmd, args = [], es = nil
- @command = cmd
- super "Failure while executing: #{cmd} #{pretty(args)*' '}"
- @exit_status = es.exitstatus rescue 1
- end
-
- def was_running_configure?
- @command == './configure'
- end
-
- private
-
- def pretty args
- args.collect do |arg|
- if arg.to_s.include? ' '
- "'#{ arg.gsub "'", "\\'" }'"
- else
- arg
- end
- end
- end
-end
-
-class BuildError <ExecutionError
- attr :env
-
- def initialize cmd, args = [], es = nil
- super
- @env = ENV.to_hash
- end
-end