Module: PoiseService::ServiceMixin::Provider
- Includes:
- Poise::Provider
- Defined in:
- lib/poise_service/service_mixin.rb
Overview
Mixin for service wrapper providers.
Instance Method Summary collapse
-
#action_disable
Default disable action for service wrappers.
-
#action_enable
Default enable action for service wrappers.
-
#action_reload
Default reload action for service wrappers.
-
#action_restart
Default restart action for service wrappers.
-
#action_start
Default start action for service wrappers.
-
#action_stop
Default stop action for service wrappers.
Instance Method Details
#action_disable
This method returns an undefined value.
Default disable action for service wrappers.
96 97 98 99 100 |
# File 'lib/poise_service/service_mixin.rb', line 96 def action_disable notify_if_service do service_resource.run_action(:disable) end end |
#action_enable
This method returns an undefined value.
Default enable action for service wrappers.
87 88 89 90 91 |
# File 'lib/poise_service/service_mixin.rb', line 87 def action_enable notify_if_service do service_resource.run_action(:enable) end end |
#action_reload
This method returns an undefined value.
Default reload action for service wrappers.
132 133 134 135 136 |
# File 'lib/poise_service/service_mixin.rb', line 132 def action_reload notify_if_service do service_resource.run_action(:reload) end end |
#action_restart
This method returns an undefined value.
Default restart action for service wrappers.
123 124 125 126 127 |
# File 'lib/poise_service/service_mixin.rb', line 123 def action_restart notify_if_service do service_resource.run_action(:restart) end end |
#action_start
This method returns an undefined value.
Default start action for service wrappers.
105 106 107 108 109 |
# File 'lib/poise_service/service_mixin.rb', line 105 def action_start notify_if_service do service_resource.run_action(:start) end end |
#action_stop
This method returns an undefined value.
Default stop action for service wrappers.
114 115 116 117 118 |
# File 'lib/poise_service/service_mixin.rb', line 114 def action_stop notify_if_service do service_resource.run_action(:stop) end end |