Class: ApacheCLI::Apache

Inherits:
Thor
  • Object
show all
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 = "#{options[:ctl_method]} #{args * ' '}"
  command = 'sudo ' + command if options[:sudo]
  run command, verbose: options[:verbose], capture: false
end