itamae 1.1.13 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7885bb553cf4e1a7b81f2d21a81b25f3f125ab49
4
- data.tar.gz: af583071cae86da6fbc61bc470b9d3765647c766
3
+ metadata.gz: f972939f9cc2ebb1f3e716d7f5ce8d6fd1093451
4
+ data.tar.gz: 1b68338decf45a43dcc189c4ba4e435768da4cc7
5
5
  SHA512:
6
- metadata.gz: ffb26e3cce08fa25ac43b9bdf1702201213baec1809cf469db7cd1ebb14a0115fd5333cdfffc2bf2494e6b9c2580587e0e68ac4922740a354bb1c6702006d5c6
7
- data.tar.gz: f815e3cdd65229d20dd0413992794b23ec0f6107b873aadf6dd4f1159a52ae8f68060725c5d3e942aebb9937e750a93e93e52ea1f35487782b466db292769d9e
6
+ metadata.gz: 7e76c169cb28a705edd1040b67c60b1b3608d1647ce06a5c19a9b8b8f2cb16c8f4b046d10c0fc09c5ecaa6c6466277535de92898a316c176534d8c18933ed4e5
7
+ data.tar.gz: bb3ca9502307850461f5d4b70b3651f69bea31a939dbaf9c08f54f123ab93d0a932cce692214913d89dce4914c1153e686dfd7c2854c5938b13c1e651d93287d
@@ -1,3 +1,10 @@
1
+ ## v1.1.14
2
+
3
+ Improvements
4
+
5
+ - Start a service only if the service is not running.
6
+ - Stop a service only if the service is running.
7
+
1
8
  ## v1.1.13
2
9
 
3
10
  Improvements
@@ -25,11 +25,15 @@ module Itamae
25
25
  end
26
26
 
27
27
  def action_start(options)
28
- run_specinfra(:start_service, attributes.name)
28
+ unless current.running
29
+ run_specinfra(:start_service, attributes.name)
30
+ end
29
31
  end
30
32
 
31
33
  def action_stop(options)
32
- run_specinfra(:stop_service, attributes.name)
34
+ if current.running
35
+ run_specinfra(:stop_service, attributes.name)
36
+ end
33
37
  end
34
38
 
35
39
  def action_restart(options)
@@ -1 +1 @@
1
- 1.1.13
1
+ 1.1.14
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai