chef-container 0.0.2.pre.dev5 → 0.0.2.pre.dev6

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: 2319e485c45542b222592afc42deecdda94659b7
4
- data.tar.gz: a0d37a623573f9feb4fe8833388ff41b6cc2eef4
3
+ metadata.gz: d0b798168db96d4238232a8f83a121516d043b49
4
+ data.tar.gz: 174d0664251d8bbc971bf073bf874759c4decbf0
5
5
  SHA512:
6
- metadata.gz: d27dcde401d2af12f51c143803fc551aa32d31cc10d7efeeeded98331b4cf36a58b36f6040fcac94e18a3d26ddd6e2edd176f6570abd9431628bb7203c7e5619
7
- data.tar.gz: 335d511b8623395ac7da22487e80857cc412f71efd4e31be745c158ddb89e6c02dcc18aac7cae014f401e66a67a2969f0f755ca839708e358d7a88f63f2f9cec
6
+ metadata.gz: 5136eadc7afbff6f4711e4a5ff60f79d826677939a7323168acdd5d7053a3e78f61b496496339313afe9238cbc1f22bad1cbd4626b3932f64c5c9aff3e38aa53
7
+ data.tar.gz: bce2f9eaf4a82593d79d491f5d6fb87b0d2f11f07af5dd331c5f9beef41dc8be261fea675755e73669970ebab81cd00e57779de89e23e5aca964e9279efb62ca
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Container
3
- VERSION = "0.0.2-dev5"
3
+ VERSION = "0.0.2-dev6"
4
4
  end
5
5
  end
@@ -79,6 +79,7 @@ class Chef
79
79
  Chef::Log.debug("#{new_resource} service symlink removed")end
80
80
 
81
81
  def start_service
82
+ enable_service unless enabled?
82
83
  shell_out!("#{Chef::Container::Runit::SV_BIN} start #{service_dir_name}")
83
84
  end
84
85
 
@@ -94,7 +95,6 @@ class Chef
94
95
  shell_out!("#{Chef::Container::Runit::SV_BIN} force-reload #{service_dir_name}")
95
96
  end
96
97
 
97
-
98
98
  def running?
99
99
  cmd = shell_out("#{Chef::Container::Runit::SV_BIN} status #{service_dir_name}")
100
100
  (cmd.stdout =~ /^run:/ && cmd.exitstatus == 0)
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.dev5
4
+ version: 0.0.2.pre.dev6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Duffield