capistrano-nginx-unit 0.6.0 → 0.6.1
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 +4 -4
- data/lib/capistrano/nginx-unit/version.rb +1 -1
- data/lib/capistrano/tasks/nginx-unit.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 052fc087abf66c93be0cfdf78ca48b9e4774c401bbccb64dda764a379db5eb07
|
4
|
+
data.tar.gz: 27b538b8b9268bab25db105fb67cabe48c635a21d62d5be5d75355bca26b64ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f59454629dcbc2ddddcdd92938b7cbfcbaf0cdf34875034db0b725cb12439aa163134832eb9046255d2cba8dcc1827885359c59d95a3ee52fb7387f67cb0788
|
7
|
+
data.tar.gz: '08546dead50ca68049d1ee1652ba9dfc04f978f54ef0a95ac8eb3ae537b7656292585ed1ddf54a500316e06dade0c8d59f24ea1c439dd0403316a182bf3fcd34'
|
@@ -106,7 +106,7 @@ namespace :nginx_unit do
|
|
106
106
|
|
107
107
|
args << "-d '#{json}'" if json
|
108
108
|
|
109
|
-
res = JSON.parse(capture(:curl, *args))
|
109
|
+
res = JSON.parse(capture(:sudo, :curl, *args))
|
110
110
|
if res["error"]
|
111
111
|
error res.inspect
|
112
112
|
raise "NGINX Unit: #{res["error"]}"
|
@@ -118,7 +118,7 @@ namespace :nginx_unit do
|
|
118
118
|
# Get current configuration
|
119
119
|
def nginx_unit_conf
|
120
120
|
JSON.parse(capture(
|
121
|
-
:curl,
|
121
|
+
:sudo, :curl,
|
122
122
|
"--unix-socket #{fetch(:nginx_unit_control_sock)}",
|
123
123
|
"http://localhost/"
|
124
124
|
))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-nginx-unit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- murakmii
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|