Class: Nginxtra::Actions::Reload
- Inherits:
-
Object
- Object
- Nginxtra::Actions::Reload
- Includes:
- Nginxtra::Action
- Defined in:
- lib/nginxtra/actions/reload.rb
Overview
The Nginxtra::Actions::Reload class encapsulates reloading nginx.
Instance Method Summary collapse
-
#reload ⇒ Object
Reload nginx.
Methods included from Nginxtra::Action
Instance Method Details
#reload ⇒ Object
Reload nginx.
8 9 10 11 |
# File 'lib/nginxtra/actions/reload.rb', line 8 def reload daemon :stop, "--signal HUP" Nginxtra::Status[:last_reload_time] = Time.now end |