luban-nginx 0.1.9 → 0.2.0

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: e7f2202fae1872a60b785100cac8150f84c06a53
4
- data.tar.gz: 33a9a163b909c38c1facbca189178a6b6ab4a4db
3
+ metadata.gz: a0802611b3ede4a1a03e9461e2aa82fe357cc459
4
+ data.tar.gz: 9f959e7c4fdaa57a217d4e39c7e8d1f941468c41
5
5
  SHA512:
6
- metadata.gz: 6598d0a0b1d3ee56ea8d4132710c2ca0c9434b5de6d4a2b513247dda1c973270ab7b569a79d0c751c78b9948eb24d0331c3950345524ca32fad7775a91226184
7
- data.tar.gz: 226401ddfc7b127a468d648f8975ee5775f3b017527043e0748e78ee8827a40699b25cee83cb24b9b532725f685493cb6394c54d4fd9a247ffc0ce0470bab3fe
6
+ metadata.gz: b1b7f3eb12a74209bf36fb815149d939b0d711bfae1268e37a3dfddabe3c60ca49d62019e4a4780b86f0ac207dfebf9080671d6bf577c086c409f7691fa202c4
7
+ data.tar.gz: 2668f570d0f6b6410b86aa764d198e213a3e4d98089928329cdf1d06e54898538fb041ba63ac4c670c8b754a859deecd303b5ad165e62e67dceeb2e3229cb1fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.2.0 (Aug 18, 2016)
4
+
5
+ Minor enhancements:
6
+ * Used #compose_command from Luban to support shell setup commands
7
+ * As a result, updated gem dependency on Luban to version 0.7.0
8
+
3
9
  ## Version 0.1.9 (Aug 05, 2016)
4
10
 
5
11
  Bug fixes:
@@ -55,19 +55,19 @@ module Luban
55
55
  protected
56
56
 
57
57
  def config_test!
58
- capture("#{nginx_command} -t 2>&1")
58
+ capture(compose_command("#{nginx_command} -t"))
59
59
  end
60
60
 
61
61
  def quit_process!
62
- capture("#{nginx_command} -s quit 2>&1")
62
+ capture(compose_command("#{nginx_command} -s quit"))
63
63
  end
64
64
 
65
65
  def reload_process!
66
- capture("#{nginx_command} -s reload 2>&1")
66
+ capture(compose_command("#{nginx_command} -s reload"))
67
67
  end
68
68
 
69
69
  def reopen_logs!
70
- capture("#{nginx_command} -s reopen 2>&1")
70
+ capture(compose_command("#{nginx_command} -s reopen"))
71
71
  end
72
72
  end
73
73
  end
@@ -3,8 +3,8 @@
3
3
  check process <%= service_entry %>
4
4
  with pidfile <%= pid_file_path %>
5
5
  onreboot laststate
6
- start program = "/bin/bash -c 'sleep 1; <%= start_command %>'"
7
- stop program = "/bin/bash -c '<%= stop_command %>'"
6
+ start program = "/bin/bash -c 'sleep 1; <%= compose_command(start_command) %>'"
7
+ stop program = "/bin/bash -c '<%= compose_command(stop_command) %>'"
8
8
  if totalmem is greater than 10.0 MB for 40 cycles then restart
9
9
  <%- if proxy? -%>
10
10
  if failed port <%= proxy_app.port %> for 4 times within 8 cycles then restart
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Packages
4
4
  class Nginx
5
- VERSION = '0.1.9'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
8
8
  end
data/luban-nginx.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_dependency 'luban', ">= 0.6.8"
23
+ spec.add_dependency 'luban', ">= 0.7.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.11"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Chi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.8
19
+ version: 0.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.6.8
26
+ version: 0.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement