foreman 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -2,8 +2,18 @@
2
2
 
3
3
  ## Installation
4
4
 
5
+ * Rubygems
6
+
5
7
  gem install foreman
6
8
 
9
+ * OSX
10
+
11
+ http://assets.foreman.io/foreman/foreman.pkg
12
+
13
+ * Standalone Tarball
14
+
15
+ http://assets.foreman.io/foreman/foreman.tgz
16
+
7
17
  ## Description
8
18
 
9
19
  http://blog.daviddollar.org/2011/05/06/introducing-foreman.html
@@ -19,11 +29,20 @@ Created by David Dollar
19
29
  Patches contributed by:
20
30
 
21
31
  * Adam Wiggins
22
- * clifff
23
32
  * Dan Peterson
33
+ * Hunter Nield
24
34
  * Jay Zeschin
25
35
  * Keith Rarick
36
+ * Khaja Minhajuddin
37
+ * Matt Haynes
38
+ * Michael van Rooijen
39
+ * Mike Javorski
40
+ * Nathan L Smith
41
+ * Nick Zadrozny
26
42
  * Ricardo Chimal, Jr
43
+ * Thom May
44
+ * clifff
45
+ * Greg Reinacker
27
46
 
28
47
  ## License
29
48
 
@@ -1,2 +1,2 @@
1
- ticker: ./ticker $PORT
2
- error : ./error
1
+ ticker: ruby ./ticker $PORT
2
+ error : ruby ./error
data/data/example/error CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ $stdout.sync = true
4
+
3
5
  puts "will error in 10s"
4
6
  sleep 5
5
7
  raise "Dying"
data/data/example/ticker CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- %w( SIGINT SIGTERM SIGHUP ).each do |signal|
3
+ $stdout.sync = true
4
+
5
+ %w( SIGINT SIGTERM ).each do |signal|
4
6
  trap(signal) do
5
7
  puts "received #{signal} but i'm ignoring it!"
6
8
  end
@@ -0,0 +1,9 @@
1
+ module Foreman
2
+ module Distribution
3
+ def self.files
4
+ Dir[File.expand_path("../../../{bin,data,lib}/**/*", __FILE__)].select do |file|
5
+ File.file?(file)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -30,7 +30,7 @@ class Foreman::Engine
30
30
  @order = []
31
31
  procfile.split("\n").inject({}) do |hash, line|
32
32
  next hash if line.strip == ""
33
- name, command = line.split(/ *: +/, 2)
33
+ name, command = line.split(/\s*:\s+/, 2)
34
34
  unless command
35
35
  warn_deprecated_procfile!
36
36
  name, command = line.split(/ +/, 2)
@@ -113,7 +113,7 @@ private ######################################################################
113
113
 
114
114
  begin
115
115
  Dir.chdir directory do
116
- PTY.spawn(runner, process.command) do |stdin, stdout, pid|
116
+ PTY.spawn(process.command) do |stdin, stdout, pid|
117
117
  trap("SIGTERM") { Process.kill("SIGTERM", pid) }
118
118
  until stdin.eof?
119
119
  info stdin.gets, process
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.21.0"
3
+ VERSION = "0.22.0"
4
4
 
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -28,7 +28,7 @@ def write_procfile(procfile="Procfile")
28
28
  File.open(procfile, "w") do |file|
29
29
  file.puts "alpha: ./alpha"
30
30
  file.puts "\n"
31
- file.puts "bravo: ./bravo"
31
+ file.puts "bravo:\t./bravo"
32
32
  end
33
33
  File.expand_path(procfile)
34
34
  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.21.0
4
+ version: 0.22.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-09 00:00:00.000000000Z
12
+ date: 2011-09-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
16
- requirement: &70144026259620 !ruby/object:Gem::Requirement
16
+ requirement: &70170664697220 !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: *70144026259620
24
+ version_requirements: *70170664697220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70144026258680 !ruby/object:Gem::Requirement
27
+ requirement: &70170664696420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,84 +32,7 @@ dependencies:
32
32
  version: 0.13.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70144026258680
36
- - !ruby/object:Gem::Dependency
37
- name: parka
38
- requirement: &70144026257860 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *70144026257860
47
- - !ruby/object:Gem::Dependency
48
- name: rake
49
- requirement: &70144026257080 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :development
56
- prerelease: false
57
- version_requirements: *70144026257080
58
- - !ruby/object:Gem::Dependency
59
- name: ronn
60
- requirement: &70144026256460 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :development
67
- prerelease: false
68
- version_requirements: *70144026256460
69
- - !ruby/object:Gem::Dependency
70
- name: fakefs
71
- requirement: &70144026255820 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ~>
75
- - !ruby/object:Gem::Version
76
- version: 0.2.1
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70144026255820
80
- - !ruby/object:Gem::Dependency
81
- name: rcov
82
- requirement: &70144026255120 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: 0.9.8
88
- type: :development
89
- prerelease: false
90
- version_requirements: *70144026255120
91
- - !ruby/object:Gem::Dependency
92
- name: rr
93
- requirement: &70144026254400 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ~>
97
- - !ruby/object:Gem::Version
98
- version: 1.0.2
99
- type: :development
100
- prerelease: false
101
- version_requirements: *70144026254400
102
- - !ruby/object:Gem::Dependency
103
- name: rspec
104
- requirement: &70144026253300 !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 2.6.0
110
- type: :development
111
- prerelease: false
112
- version_requirements: *70144026253300
35
+ version_requirements: *70170664696420
113
36
  description: Process manager for applications with multiple components
114
37
  email: ddollar@gmail.com
115
38
  executables:
@@ -118,7 +41,6 @@ extensions: []
118
41
  extra_rdoc_files: []
119
42
  files:
120
43
  - bin/foreman
121
- - bin/foreman-runner
122
44
  - data/example/error
123
45
  - data/example/log/neverdie.log
124
46
  - data/example/Procfile
@@ -129,6 +51,7 @@ files:
129
51
  - data/export/upstart/process.conf.erb
130
52
  - data/export/upstart/process_master.conf.erb
131
53
  - lib/foreman/cli.rb
54
+ - lib/foreman/distribution.rb
132
55
  - lib/foreman/engine.rb
133
56
  - lib/foreman/export/base.rb
134
57
  - lib/foreman/export/bluepill.rb
@@ -168,12 +91,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
91
  - - ! '>='
169
92
  - !ruby/object:Gem::Version
170
93
  version: '0'
94
+ segments:
95
+ - 0
96
+ hash: -2668075272993756722
171
97
  required_rubygems_version: !ruby/object:Gem::Requirement
172
98
  none: false
173
99
  requirements:
174
100
  - - ! '>='
175
101
  - !ruby/object:Gem::Version
176
102
  version: '0'
103
+ segments:
104
+ - 0
105
+ hash: -2668075272993756722
177
106
  requirements: []
178
107
  rubyforge_project:
179
108
  rubygems_version: 1.8.10
data/bin/foreman-runner DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env ruby
2
- exec ARGV.join(" ")