diff options
| author | Jack Nagel | 2014-07-19 22:36:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-19 22:37:22 -0500 |
| commit | a150403eb9878045696e5860a1a7488838a7a0d2 (patch) | |
| tree | 301153a6bb3c8cb5d4e3e02aef01e3b1e181ff0d /Library | |
| parent | 010bd2783e38d3ab7a36b091990211568d720fea (diff) | |
| download | brew-a150403eb9878045696e5860a1a7488838a7a0d2.tar.bz2 | |
brew-gist-logs: dump config directly
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-gist-logs.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-gist-logs.rb b/Library/Contributions/cmd/brew-gist-logs.rb index e06da81c7..947570c97 100755 --- a/Library/Contributions/cmd/brew-gist-logs.rb +++ b/Library/Contributions/cmd/brew-gist-logs.rb @@ -1,6 +1,8 @@ require 'formula' +require 'cmd/config' require 'net/http' require 'net/https' +require 'stringio' def gist_logs f if ARGV.include? '--new-issue' @@ -37,7 +39,9 @@ def load_logs name end def append_config files - files['config.out'] = {:content => `brew config 2>&1`} + s = StringIO.new + Homebrew.dump_verbose_config(s) + files["config.out"] = { :content => s.string } end def append_doctor files |
