bosh-core 1.2603.0 → 1.2605.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,11 +21,20 @@ module Bosh::Core
21
21
  stdout.puts command if options[:output_command]
22
22
  lines = []
23
23
 
24
- io = IO.popen(command)
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
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Core
3
- VERSION = '1.2603.0'
3
+ VERSION = '1.2605.0'
4
4
  end
5
5
  end
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.2603.0
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-10 00:00:00.000000000 Z
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: 2679284040722943055
77
+ hash: 862742110841166751
78
78
  requirements: []
79
79
  rubyforge_project:
80
80
  rubygems_version: 1.8.23.2