knife-essentials 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife/xargs_essentials.rb +3 -3
- data/lib/chef_fs/version.rb +1 -1
- metadata +2 -2
@@ -216,7 +216,7 @@ class Chef
|
|
216
216
|
end
|
217
217
|
command_output = `#{command}`
|
218
218
|
command_output = sub_filenames(command_output, tempfiles)
|
219
|
-
|
219
|
+
stdout.write command_output
|
220
220
|
|
221
221
|
# Check if the output is different
|
222
222
|
tempfiles.each_pair do |tempfile, file|
|
@@ -243,7 +243,7 @@ class Chef
|
|
243
243
|
diff = `diff -u #{old_file.path} #{tempfile.path}`
|
244
244
|
diff.gsub!(old_file.path, "#{format_path(file[:file])} (old)")
|
245
245
|
diff.gsub!(tempfile.path, "#{format_path(file[:file])} (new)")
|
246
|
-
|
246
|
+
stdout.write diff
|
247
247
|
ensure
|
248
248
|
old_file.close!
|
249
249
|
end
|
@@ -255,7 +255,7 @@ class Chef
|
|
255
255
|
|
256
256
|
def sub_filenames(str, tempfiles)
|
257
257
|
tempfiles.each_pair do |tempfile, file|
|
258
|
-
str.gsub
|
258
|
+
str = str.gsub(tempfile.path, format_path(file[:file]))
|
259
259
|
end
|
260
260
|
str
|
261
261
|
end
|
data/lib/chef_fs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-essentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef-zero
|