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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12e9e152983e1343a111f4cff83e1bae4ed50e66
4
- data.tar.gz: d9db22e7e271bba465853b5e9750fb293aab89fb
3
+ metadata.gz: b917fa5a57a4eb4c245bc85365b75b5bc3788cae
4
+ data.tar.gz: 7a88c8f76e74a88bdbe8c94eb07e1cbd969120d4
5
5
  SHA512:
6
- metadata.gz: 3b08946c6ff8e3b344a81463a86b8295a467b69d724e5b2a741bacf1b0a6b0d292c26fec86676f5c251085d28dfac4b90e7985a48ca6a8a29f49e78e6cd5b114
7
- data.tar.gz: 6133947ca60eeb9a2745cba2ad848793cf1e69cc25b1700ac908bf194737dc480d7dbca113f563cb2c93a77eb3b770e7a74ecb21489ea9807b824f9ab96fa49b
6
+ metadata.gz: 2c86ee28f8422c7760ebb1a4ec6cc14b1a3c3757b19d4baf816fba5ce8d94dcf81d9f5dd4772bb9f6ddbe62f56e00060003f2e12041e1ba56bfa47fd1c01fce3
7
+ data.tar.gz: 1f37dfff9a06eb572fff46635e6fbaa7635c457a9fea195425fee13bf26399b52f4a739a41d44b5be2b0241d2fab901f7a78a62e17cd4f925dd0a0d343238651
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Container
3
- VERSION = "0.0.2-dev7"
3
+ VERSION = "0.0.2-dev8"
4
4
  end
5
5
  end
@@ -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 #{service_dir_name}")
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")end
79
+ Chef::Log.debug("#{new_resource} service symlink removed")
80
+ end
80
81
 
81
82
  def start_service
82
- service_link.run_action(:create) unless new_resource.enabled
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 #{service_dir_name}")
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 #{service_dir_name}")
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 #{service_dir_name}")
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 #{service_dir_name}")
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre.dev7
4
+ version: 0.0.2.pre.dev8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Duffield