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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddfee8b2122871c6fd75fca4facab14159e52deb451a886bce04171bafb8d25b
4
- data.tar.gz: 168ab379cc00f7798cb96ee04913526e35d35950ff51f69d21729b74c32518d6
3
+ metadata.gz: 052fc087abf66c93be0cfdf78ca48b9e4774c401bbccb64dda764a379db5eb07
4
+ data.tar.gz: 27b538b8b9268bab25db105fb67cabe48c635a21d62d5be5d75355bca26b64ff
5
5
  SHA512:
6
- metadata.gz: 7042401e81aed3c569c4899940fc73a438f6a2fad5a82fb2122d8df689549068cf569f4ab3277fd5bb8ee1eb9af4866d4805995dda587f4d83175e842a8a77fc
7
- data.tar.gz: 263777e2596475d88f82eb64dec8cf4ee2499f82b56337cb43340e55b4940f341cdd06c20c7569c525701ae003b6c187364e9057e35014fef0c0102c64e87176
6
+ metadata.gz: 1f59454629dcbc2ddddcdd92938b7cbfcbaf0cdf34875034db0b725cb12439aa163134832eb9046255d2cba8dcc1827885359c59d95a3ee52fb7387f67cb0788
7
+ data.tar.gz: '08546dead50ca68049d1ee1652ba9dfc04f978f54ef0a95ac8eb3ae537b7656292585ed1ddf54a500316e06dade0c8d59f24ea1c439dd0403316a182bf3fcd34'
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- NGINX_UNIT_VERSION = "0.6.0"
2
+ NGINX_UNIT_VERSION = "0.6.1"
3
3
  end
@@ -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.0
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-14 00:00:00.000000000 Z
11
+ date: 2018-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano