Class: GDK::Diagnostic::Gitlab::GitlabShellSecretDiagnostic
- Inherits:
-
Object
- Object
- GDK::Diagnostic::Gitlab::GitlabShellSecretDiagnostic
- Defined in:
- lib/gdk/diagnostic/gitlab.rb
Constant Summary collapse
- GITLAB_SHELL_SECRET_FILE =
'.gitlab_shell_secret'
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(config) ⇒ GitlabShellSecretDiagnostic
constructor
A new instance of GitlabShellSecretDiagnostic.
- #success? ⇒ Boolean
Constructor Details
#initialize(config) ⇒ GitlabShellSecretDiagnostic
Returns a new instance of GitlabShellSecretDiagnostic.
38 39 40 |
# File 'lib/gdk/diagnostic/gitlab.rb', line 38 def initialize(config) @config = config end |
Instance Method Details
#detail ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/gdk/diagnostic/gitlab.rb', line 46 def detail return if success? if !both_files_exist? file_doesnt_exist_detail + solution_detail elsif !contents_match? contents_match_detail + solution_detail end end |
#success? ⇒ Boolean
42 43 44 |
# File 'lib/gdk/diagnostic/gitlab.rb', line 42 def success? both_files_exist? && contents_match? end |