Debian Codegraph @

lib/bundler/cli/issue.rb

raw
1 # frozen_string_literal: true
2
3 require "rbconfig"
4
5 module Bundler
6 class CLI::Issue
7 def run
8 Bundler.ui.info <<~EOS
9 Did you find an issue with Bundler? Before filing a new issue,
10 be sure to check out these resources:
11
12 1. Check out our troubleshooting guide for quick fixes to common issues:
13 https://github.com/rubygems/rubygems/blob/master/bundler/doc/TROUBLESHOOTING.md
14
15 2. Instructions for common Bundler uses can be found on the documentation
16 site: https://bundler.io/
17
18 3. Information about each Bundler command can be found in the Bundler
19 man pages: https://bundler.io/man/bundle.1.html
20
21 Hopefully the troubleshooting steps above resolved your problem! If things
22 still aren't working the way you expect them to, please let us know so
23 that we can diagnose and help fix the problem you're having, by filling
24 in the new issue form located at
25 https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md,
26 and copy and pasting the information below.
27
28 EOS
29
30 Bundler.ui.info Bundler::Env.report
31
32 Bundler.ui.info "\n## Bundle Doctor"
33 doctor
34 end
35
36 def doctor
37 require_relative "doctor"
38 Bundler::CLI::Doctor.new({}).run
39 end
40 end
41 end