foreman 0.52.0 → 0.53.0

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: ruby
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: &70304141675920 !ruby/object:Gem::Requirement
16
+ requirement: &70298717948140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.13.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70304141675920
24
+ version_requirements: *70298717948140
25
25
  description: Process manager for applications with multiple components
26
26
  email: ddollar@gmail.com
27
27
  executables:
@@ -121,12 +121,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  - - ! '>='
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
+ segments:
125
+ - 0
126
+ hash: 3078355139139106032
124
127
  required_rubygems_version: !ruby/object:Gem::Requirement
125
128
  none: false
126
129
  requirements:
127
130
  - - ! '>='
128
131
  - !ruby/object:Gem::Version
129
132
  version: '0'
133
+ segments:
134
+ - 0
135
+ hash: 3078355139139106032
130
136
  requirements: []
131
137
  rubyforge_project:
132
138
  rubygems_version: 1.8.11
@@ -134,3 +140,4 @@ signing_key:
134
140
  specification_version: 3
135
141
  summary: Process manager for applications with multiple components
136
142
  test_files: []
143
+ has_rdoc: