foreman 0.52.0-java → 0.53.0-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -256,7 +256,10 @@ private
256
256
  1.upto(formation[@names[process]]) do |n|
257
257
  reader, writer = create_pipe
258
258
  begin
259
- pid = process.run(:output => writer, :env => { "PORT" => port_for(process, n).to_s })
259
+ pid = process.run(:output => writer, :env => {
260
+ "HOME" => process.cwd,
261
+ "PORT" => port_for(process, n).to_s
262
+ })
260
263
  writer.puts "started with pid #{pid}"
261
264
  rescue Errno::ENOENT
262
265
  writer.puts "unknown command: #{process.command}"
@@ -90,8 +90,10 @@ class Foreman::Process
90
90
  !alive?
91
91
  end
92
92
 
93
- private
94
-
93
+ # Returns the working directory for this +Process+
94
+ #
95
+ # @returns [String]
96
+ #
95
97
  def cwd
96
98
  File.expand_path(@options[:cwd] || ".")
97
99
  end
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.52.0"
3
+ VERSION = "0.53.0"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.0
5
5
  prerelease:
6
6
  platform: java
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70211491658580 !ruby/object:Gem::Requirement
16
+ requirement: &70159995336780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.13.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70211491658580
24
+ version_requirements: *70159995336780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: posix-spawn
27
- requirement: &70211491674340 !ruby/object:Gem::Requirement
27
+ requirement: &70159995336140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.3.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70211491674340
35
+ version_requirements: *70159995336140
36
36
  description: Process manager for applications with multiple components
37
37
  email: ddollar@gmail.com
38
38
  executables: