Sha256: 7b56beb5d46daa91a423761c16e719b5e298dd1d0fbe3f4145f35623a7993cea
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
require 'deployml/exceptions/invalid_config' module DeploYML module Servers # # Provides methods for starting, stoping and restarting the # [Apache](http://httpd.apache.org/) web server. # module Apache # # Starts Apache using the `apachectl start` command. # # @param [LocalShell, RemoteShell] shell # The shell to execute commands in. # def server_start(shell) shell.run 'apachectl', 'start' end # # Restarts Apache using the `apachectl restart` command. # # @param [LocalShell, RemoteShell] shell # The shell to execute commands in. # def server_restart(shell) shell.run 'apachectl', 'restart' end # # Stops Apache using the `apachectl stop` command. # # @param [LocalShell, RemoteShell] shell # The shell to execute commands in. # def server_stop(shell) shell.run 'apachectl', 'stop' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deployml-0.4.0 | lib/deployml/servers/apache.rb |