module DeploYML::Servers::Apache
Provides methods for starting, stopping and restarting the [Apache](httpd.apache.org/) web server.
Public Instance Methods
server_restart(shell)
click to toggle source
Restarts Apache
using the `apachectl restart` command.
@param [LocalShell, RemoteShell] shell
The shell to execute commands in.
# File lib/deployml/servers/apache.rb, line 30 def server_restart(shell) shell.status "Restarting Apache ..." shell.run 'apachectl', 'restart' shell.status "Apache restarted." end
server_start(shell)
click to toggle source
Starts Apache
using the `apachectl start` command.
@param [LocalShell, RemoteShell] shell
The shell to execute commands in.
# File lib/deployml/servers/apache.rb, line 16 def server_start(shell) shell.status "Starting Apache ..." shell.run 'apachectl', 'start' shell.status "Apache started." end
server_stop(shell)
click to toggle source
Stops Apache
using the `apachectl stop` command.
@param [LocalShell, RemoteShell] shell
The shell to execute commands in.
# File lib/deployml/servers/apache.rb, line 44 def server_stop(shell) shell.status "Stopping Apache ..." shell.run 'apachectl', 'stop' shell.status "Apache stoped." end