Class: GDK::Diagnostic::Bundler::BundleConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/gdk/diagnostic/bundler.rb

Instance Method Summary collapse

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

Returns:

  • (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_detailObject



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