Class: Chef::Provider::ContainerServiceRunit
- Inherits:
-
LWRPBase
- Object
- LWRPBase
- Chef::Provider::ContainerServiceRunit
- Defined in:
- lib/chef/provider/container_service_runit.rb
Instance Method Summary collapse
- #log_run_script_content ⇒ Object
- #run_script_content ⇒ Object
- #service_dir_name ⇒ Object
-
#sv_dir_name ⇒ Object
Helper Resource Methods.
- #whyrun_supported? ⇒ Boolean
Instance Method Details
#log_run_script_content ⇒ Object
80 81 82 83 |
# File 'lib/chef/provider/container_service_runit.rb', line 80 def log_run_script_content "#!/bin/sh exec svlogd -tt /var/log/#{new_resource.service_name}" end |
#run_script_content ⇒ Object
74 75 76 77 78 |
# File 'lib/chef/provider/container_service_runit.rb', line 74 def run_script_content "#!/bin/sh exec 2>&1 exec #{new_resource.command} 2>&1" end |
#service_dir_name ⇒ Object
70 71 72 |
# File 'lib/chef/provider/container_service_runit.rb', line 70 def service_dir_name ::File.join(new_resource.service_dir, new_resource.service_name) end |
#sv_dir_name ⇒ Object
Helper Resource Methods
66 67 68 |
# File 'lib/chef/provider/container_service_runit.rb', line 66 def sv_dir_name ::File.join(new_resource.sv_dir, new_resource.service_name) end |
#whyrun_supported? ⇒ Boolean
23 24 25 |
# File 'lib/chef/provider/container_service_runit.rb', line 23 def whyrun_supported? true end |