diff options
| author | Jack Nagel | 2014-07-19 22:36:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-19 22:37:22 -0500 |
| commit | 3371fe47911a9530b252f7457332c584c5f1d086 (patch) | |
| tree | 388948e986db65e78fb0ba0e5ad8c8175a52cdf9 | |
| parent | 9a07979f6248fbdd8fdf0257aa0e449a4821d22a (diff) | |
| download | homebrew-3371fe47911a9530b252f7457332c584c5f1d086.tar.bz2 | |
brew-gist-logs: dump config directly
| -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 |
