luban 0.7.1 → 0.7.2

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: 54b42043d2a1f279f502aac4b9eac6df61084b28
4
- data.tar.gz: 4f46862563c95782b23f0058869df124657d496a
3
+ metadata.gz: 77397a73d48be8aae5e88c15751d2f31247d4ff5
4
+ data.tar.gz: 1d788a44466f84e9097d36e260e4b6613084de1a
5
5
  SHA512:
6
- metadata.gz: ca6c519f7fb2c68e08d6b262e5740a46edb5fe2b80cf28e8ac91ed7517374b364575923357f54bf8f2e94ff77d07c9726c9eec1b246c8109de6142d1576021a0
7
- data.tar.gz: 6c94d43d0a2fe976e5d1565e01fc81156424c61fce1d20d6910722fd67382ac2178b321697b87a65df5f178cd074f0b18a119f84d33d904a6961d3f534e33ff6
6
+ metadata.gz: 2e027fee9981c212b57d31ba33779555b62d3f8b1c52b79859fcf5b64b842260c6e86d862f1ec10190292a134d133825fc8aaefac3c0ceb06f453ea21a25e83a
7
+ data.tar.gz: bf0792cd771f50f42c12fa1ac57b631f37bb5ca8d81e56aed4ac7b99f62a02ceeafefc1f7eb0f3a58231087e954fd524714b06437c82957a9992cc94f46bff2e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.7.2 (Aug 23, 2016)
4
+
5
+ Minor enhancements:
6
+ * Better handled orphaned pid file removal
7
+
3
8
  ## Version 0.7.1 (Aug 19, 2016)
4
9
 
5
10
  Minor enhancements:
@@ -77,10 +77,10 @@ module Luban
77
77
  if check_until { process_stopped? }
78
78
  update_result "Stop #{service_full_name}: [OK] #{output}"
79
79
  else
80
- remove_orphaned_pid_file
81
80
  update_result "Stop #{service_full_name}: [FAILED] #{output}",
82
81
  status: :failed, level: :error
83
82
  end
83
+ remove_orphaned_pid_file
84
84
  end
85
85
 
86
86
  def restart_process
@@ -88,6 +88,7 @@ module Luban
88
88
  unmonitor_process
89
89
  output = stop_process!
90
90
  if check_until { process_stopped? }
91
+ remove_orphaned_pid_file
91
92
  info "Stop #{service_full_name}: [OK] #{output}"
92
93
  else
93
94
  remove_orphaned_pid_file
@@ -125,11 +126,11 @@ module Luban
125
126
  unmonitor_process
126
127
  output = kill_process!
127
128
  if check_until { process_stopped? }
128
- remove_orphaned_pid_file
129
129
  update_result "Kill #{service_full_name}: [OK] #{output}"
130
130
  else
131
131
  update_result "Kill #{service_full_name}: [FAILED] #{output}"
132
132
  end
133
+ remove_orphaned_pid_file
133
134
  end
134
135
 
135
136
  def process_monitor_defined?
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-21 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli