Class: ObsDeploy::Systemctl

Inherits:
Object
  • Object
show all
Defined in:
lib/obs_deploy/systemctl.rb

Instance Method Summary collapse

Instance Method Details

#list_dependenciesObject



9
10
11
# File 'lib/obs_deploy/systemctl.rb', line 9

def list_dependencies
  run ['systemctl'] + ['list-dependencies'] + target
end

#restart_apacheObject



13
14
15
# File 'lib/obs_deploy/systemctl.rb', line 13

def restart_apache
  run ['systemctl'] + ['restart'] + ['apache2']
end

#statusObject



5
6
7
# File 'lib/obs_deploy/systemctl.rb', line 5

def status
  run ['systemctl'] + ['status'] + target
end

#status_apacheObject



17
18
19
# File 'lib/obs_deploy/systemctl.rb', line 17

def status_apache
  run ['systemctl'] + ['status'] + ['apache2']
end