Class: ObsDeploy::Systemctl
- Inherits:
-
Object
- Object
- ObsDeploy::Systemctl
- Defined in:
- lib/obs_deploy/systemctl.rb
Instance Method Summary collapse
Instance Method Details
#list_dependencies ⇒ Object
9 10 11 |
# File 'lib/obs_deploy/systemctl.rb', line 9 def list_dependencies run ['systemctl'] + ['list-dependencies'] + target end |
#restart_apache ⇒ Object
13 14 15 |
# File 'lib/obs_deploy/systemctl.rb', line 13 def restart_apache run ['systemctl'] + ['restart'] + ['apache2'] end |
#status ⇒ Object
5 6 7 |
# File 'lib/obs_deploy/systemctl.rb', line 5 def status run ['systemctl'] + ['status'] + target end |
#status_apache ⇒ Object
17 18 19 |
# File 'lib/obs_deploy/systemctl.rb', line 17 def status_apache run ['systemctl'] + ['status'] + ['apache2'] end |