Class: ApacheCLI::Apache
- Includes:
- Thor::Actions
- Defined in:
- lib/thorium/tasks/apache.rb
Overview
Top level comment for apache
Instance Method Summary collapse
Instance Method Details
#ctl(*args) ⇒ Object
21 22 23 24 25 |
# File 'lib/thorium/tasks/apache.rb', line 21 def ctl(*args) command = "#{[:ctl_method]} #{args * ' '}" command = 'sudo ' + command if [:sudo] run command, verbose: [:verbose], capture: false end |