Class: Nginxtra::Actions::Restart
- Inherits:
-
Object
- Object
- Nginxtra::Actions::Restart
- Includes:
- Nginxtra::Action
- Defined in:
- lib/nginxtra/actions/restart.rb
Overview
The Nginxtra::Actions::Restart class encapsulates restarting nginx.
Instance Method Summary collapse
-
#restart ⇒ Object
Restart nginx by stopping and starting.
Methods included from Nginxtra::Action
Instance Method Details
#restart ⇒ Object
Restart nginx by stopping and starting.
8 9 10 11 12 |
# File 'lib/nginxtra/actions/restart.rb', line 8 def restart Nginxtra::Actions::Stop.new(@thor, @config).stop sleep 1 Nginxtra::Actions::Start.new(@thor, @config).start end |