bosh-core 1.2603.0 → 1.2605.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.
- data/lib/bosh/core/shell.rb +10 -1
- data/lib/bosh/core/version.rb +1 -1
- metadata +3 -3
data/lib/bosh/core/shell.rb
CHANGED
@@ -21,11 +21,20 @@ module Bosh::Core
|
|
21
21
|
stdout.puts command if options[:output_command]
|
22
22
|
lines = []
|
23
23
|
|
24
|
-
|
24
|
+
if options[:env]
|
25
|
+
# Wrap in a shell because existing api to Shell#run takes a string
|
26
|
+
# which makes it really hard to pass it to popen with custom environment.
|
27
|
+
popen_args = [options[:env], ENV['SHELL'] || 'bash', '-c', command]
|
28
|
+
else
|
29
|
+
popen_args = command
|
30
|
+
end
|
31
|
+
|
32
|
+
io = IO.popen(popen_args)
|
25
33
|
io.each do |line|
|
26
34
|
stdout.puts line.chomp
|
27
35
|
lines << line.chomp
|
28
36
|
end
|
37
|
+
|
29
38
|
io.close
|
30
39
|
|
31
40
|
lines
|
data/lib/bosh/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2605.0
|
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: 2014-06-
|
12
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gibberish
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash:
|
77
|
+
hash: 862742110841166751
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
80
|
rubygems_version: 1.8.23.2
|