hookit 0.12.1 → 0.12.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 +4 -4
- data/lib/hookit/resource/execute.rb +5 -5
- data/lib/hookit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8342f4bd71401634e0c6cd7da2cf5b37e23ecda8
|
|
4
|
+
data.tar.gz: ad113427e8d79d9e1c27e751ad5fa8c11b74dc9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 229e522aee79dcb860982f47645e858001f76538c7601d345e841fb2ba7a1da2d725b687ecafe46478d7343e44705061dedd6bac9cf5307e3569e60293bc3020
|
|
7
|
+
data.tar.gz: 809767c393d6f170a29dec272d70f0c6d5ed478d6b976aa83179e9601d5795d15ac979716b86ed866d3a0a447b34f65d5dcecfd3c48dcafeadc4fa7bb63da941
|
|
@@ -4,7 +4,7 @@ require 'open3'
|
|
|
4
4
|
module Hookit
|
|
5
5
|
module Resource
|
|
6
6
|
class Execute < Base
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
field :command
|
|
9
9
|
field :cwd
|
|
10
10
|
field :environment
|
|
@@ -83,7 +83,7 @@ module Hookit
|
|
|
83
83
|
ready_pipes.each_with_index do |socket|
|
|
84
84
|
if socket == stdout
|
|
85
85
|
begin
|
|
86
|
-
chunk = socket.readpartial(
|
|
86
|
+
chunk = socket.readpartial(1)
|
|
87
87
|
if on_data and on_data.respond_to? :call
|
|
88
88
|
on_data.call(chunk)
|
|
89
89
|
end
|
|
@@ -96,7 +96,7 @@ module Hookit
|
|
|
96
96
|
result << chunk.to_s
|
|
97
97
|
elsif socket == stderr
|
|
98
98
|
begin
|
|
99
|
-
chunk = socket.readpartial(
|
|
99
|
+
chunk = socket.readpartial(1)
|
|
100
100
|
if on_data and on_data.respond_to? :call
|
|
101
101
|
on_data.call(chunk)
|
|
102
102
|
end
|
|
@@ -142,7 +142,7 @@ module Hookit
|
|
|
142
142
|
com = su(user, com)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
com
|
|
145
|
+
com
|
|
146
146
|
end
|
|
147
147
|
|
|
148
148
|
# strategy:
|
|
@@ -182,4 +182,4 @@ module Hookit
|
|
|
182
182
|
|
|
183
183
|
end
|
|
184
184
|
end
|
|
185
|
-
end
|
|
185
|
+
end
|
data/lib/hookit/version.rb
CHANGED