chef-container 0.0.2.pre.dev7 → 0.0.2.pre.dev8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/container/version.rb +1 -1
- data/lib/chef/provider/service/container.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b917fa5a57a4eb4c245bc85365b75b5bc3788cae
|
4
|
+
data.tar.gz: 7a88c8f76e74a88bdbe8c94eb07e1cbd969120d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c86ee28f8422c7760ebb1a4ec6cc14b1a3c3757b19d4baf816fba5ce8d94dcf81d9f5dd4772bb9f6ddbe62f56e00060003f2e12041e1ba56bfa47fd1c01fce3
|
7
|
+
data.tar.gz: 1f37dfff9a06eb572fff46635e6fbaa7635c457a9fea195425fee13bf26399b52f4a739a41d44b5be2b0241d2fab901f7a78a62e17cd4f925dd0a0d343238651
|
@@ -73,30 +73,30 @@ class Chef
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def disable_service
|
76
|
-
shell_out("#{Chef::Container::Runit::SV_BIN} down #{
|
76
|
+
shell_out("#{Chef::Container::Runit::SV_BIN} down #{sv_dir_name}")
|
77
77
|
Chef::Log.debug("#{new_resource} down")
|
78
78
|
FileUtils.rm(service_dir_name)
|
79
|
-
Chef::Log.debug("#{new_resource} service symlink removed")
|
79
|
+
Chef::Log.debug("#{new_resource} service symlink removed")
|
80
|
+
end
|
80
81
|
|
81
82
|
def start_service
|
82
|
-
|
83
|
-
shell_out!("#{Chef::Container::Runit::SV_BIN} start #{service_dir_name}")
|
83
|
+
shell_out!("#{Chef::Container::Runit::SV_BIN} start #{sv_dir_name}")
|
84
84
|
end
|
85
85
|
|
86
86
|
def stop_service
|
87
|
-
shell_out!("#{Chef::Container::Runit::SV_BIN} stop #{
|
87
|
+
shell_out!("#{Chef::Container::Runit::SV_BIN} stop #{sv_dir_name}")
|
88
88
|
end
|
89
89
|
|
90
90
|
def restart_service
|
91
|
-
shell_out!("#{Chef::Container::Runit::SV_BIN} restart #{
|
91
|
+
shell_out!("#{Chef::Container::Runit::SV_BIN} restart #{sv_dir_name}")
|
92
92
|
end
|
93
93
|
|
94
94
|
def reload_service
|
95
|
-
shell_out!("#{Chef::Container::Runit::SV_BIN} force-reload #{
|
95
|
+
shell_out!("#{Chef::Container::Runit::SV_BIN} force-reload #{sv_dir_name}")
|
96
96
|
end
|
97
97
|
|
98
98
|
def running?
|
99
|
-
cmd = shell_out("#{Chef::Container::Runit::SV_BIN} status #{
|
99
|
+
cmd = shell_out("#{Chef::Container::Runit::SV_BIN} status #{sv_dir_name}")
|
100
100
|
(cmd.stdout =~ /^run:/ && cmd.exitstatus == 0)
|
101
101
|
end
|
102
102
|
|