Class: GDK::Diagnostic::Bundler::BundleConfig
- Inherits:
-
Object
- Object
- GDK::Diagnostic::Bundler::BundleConfig
- Defined in:
- lib/gdk/diagnostic/bundler.rb
Instance Method Summary collapse
- #bundle_path_not_set? ⇒ Boolean
-
#initialize(path) ⇒ BundleConfig
constructor
A new instance of BundleConfig.
- #warning_detail ⇒ Object
Constructor Details
#initialize(path) ⇒ BundleConfig
Returns a new instance of BundleConfig.
23 24 25 |
# File 'lib/gdk/diagnostic/bundler.rb', line 23 def initialize(path) @path = path end |
Instance Method Details
#bundle_path_not_set? ⇒ Boolean
27 28 29 |
# File 'lib/gdk/diagnostic/bundler.rb', line 27 def bundle_path_not_set? @bundle_path_not_set ||= bundle_path.include?('You have not configured a value for `PATH`') end |
#warning_detail ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/gdk/diagnostic/bundler.rb', line 31 def warning_detail return if bundle_path_not_set? <<~WARNING #{path} appears to have BUNDLE_PATH configured which can cause issues. For more detail, visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/1315 #{bundle_path} WARNING end |