foreman 0.28.0.pre1 → 0.28.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ class Foreman::Process
16
16
  def run(pipe, basedir, environment)
17
17
  Dir.chdir(basedir) do
18
18
  with_environment(environment.merge("PORT" => port.to_s)) do
19
- run_process entry.command
19
+ run_process entry.command, pipe
20
20
  end
21
21
  end
22
22
  end
@@ -27,7 +27,7 @@ class Foreman::Process
27
27
 
28
28
  private
29
29
 
30
- def run_process(command)
30
+ def run_process(command, pipe)
31
31
  io = IO.popen([Foreman.runner, replace_command_env(command)], "w+")
32
32
  @pid = io.pid
33
33
  trap("SIGTERM") { "got sigterm for %d" % @pid }
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.28.0.pre1"
3
+ VERSION = "0.28.0.pre2"
4
4
 
5
5
  end
@@ -24,8 +24,8 @@ describe "Foreman::Engine" do
24
24
  describe "start" do
25
25
  it "forks the processes" do
26
26
  write_procfile
27
- mock.instance_of(Foreman::Process).run_process("./alpha")
28
- mock.instance_of(Foreman::Process).run_process("./bravo")
27
+ mock.instance_of(Foreman::Process).run_process("./alpha", is_a(IO))
28
+ mock.instance_of(Foreman::Process).run_process("./bravo", is_a(IO))
29
29
  mock(subject).watch_for_output
30
30
  mock(subject).watch_for_termination
31
31
  subject.start
@@ -34,8 +34,8 @@ describe "Foreman::Engine" do
34
34
  it "handles concurrency" do
35
35
  write_procfile
36
36
  engine = Foreman::Engine.new("Procfile",:concurrency => "alpha=2")
37
- mock.instance_of(Foreman::Process).run_process("./alpha").twice
38
- mock.instance_of(Foreman::Process).run_process("./bravo")
37
+ mock.instance_of(Foreman::Process).run_process("./alpha", is_a(IO)).twice
38
+ mock.instance_of(Foreman::Process).run_process("./bravo", is_a(IO))
39
39
  mock(engine).watch_for_output
40
40
  mock(engine).watch_for_termination
41
41
  engine.start
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.28.0.pre1
4
+ version: 0.28.0.pre2
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
16
- requirement: &70324999098260 !ruby/object:Gem::Requirement
16
+ requirement: &70300872937420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70324999098260
24
+ version_requirements: *70300872937420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70324999097620 !ruby/object:Gem::Requirement
27
+ requirement: &70300872935220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.13.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70324999097620
35
+ version_requirements: *70300872935220
36
36
  description: Process manager for applications with multiple components
37
37
  email: ddollar@gmail.com
38
38
  executables:
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 710611056517005467
109
+ hash: 2359681466929190567
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements: