Class: GDK::Diagnostic::Nginx
Constant Summary collapse
- TITLE =
'GDK NGINX Configuration'
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#detail ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/gdk/diagnostic/nginx.rb', line 15 def detail return if success? <<~MESSAGE nginx/conf/nginx.conf is not valid! #{test_cmd.read_stdout} #{test_cmd.read_stderr} MESSAGE end |
#success? ⇒ Boolean
8 9 10 11 12 13 |
# File 'lib/gdk/diagnostic/nginx.rb', line 8 def success? return true unless config.nginx.enabled? test_cmd.execute(display_output: false, display_error: false) test_cmd.success? end |