Compare commits

...
6 Commits
Author SHA1 Message Date
David Dollar e6b61801b1 0.10.0 2010-12-13 18:05:41 -05:00
David Dollar dc231f072b allow optional colon after process name 2010-12-13 18:05:06 -05:00
David Dollar b77b23b306 declare license 2010-11-16 17:47:53 -05:00
David Dollar 185617dddc 0.9.2 2010-11-09 13:42:18 -05:00
David Dollar 9e4cc02827 upgrade dependencies 2010-11-09 13:41:18 -05:00
David Dollar 8b6e2481f4 ruby 1.8.6 compatibility 2010-11-09 13:41:08 -05:00
5 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ end
group :test do group :test do
gem 'fakefs', '~> 0.2.1' gem 'fakefs', '~> 0.2.1'
gem 'rcov', '~> 0.9.8' gem 'rcov', '~> 0.9.8'
gem 'rr', '~> 0.10.11' gem 'rr', '~> 1.0.2'
gem 'rspec', '~> 2.0.0.beta.19' gem 'rspec', '~> 2.0.0'
end end
gem 'term-ansicolor', '~> 1.0.5' gem 'term-ansicolor', '~> 1.0.5'
+3 -3
View File
@@ -18,7 +18,7 @@ GEM
hpricot (>= 0.8.2) hpricot (>= 0.8.2)
mustache (>= 0.7.0) mustache (>= 0.7.0)
rdiscount (>= 1.5.8) rdiscount (>= 1.5.8)
rr (0.10.11) rr (1.0.2)
rspec (2.0.0.beta.19) rspec (2.0.0.beta.19)
rspec-core (= 2.0.0.beta.19) rspec-core (= 2.0.0.beta.19)
rspec-expectations (= 2.0.0.beta.19) rspec-expectations (= 2.0.0.beta.19)
@@ -39,7 +39,7 @@ DEPENDENCIES
rake rake
rcov (~> 0.9.8) rcov (~> 0.9.8)
ronn ronn
rr (~> 0.10.11) rr (~> 1.0.2)
rspec (~> 2.0.0.beta.19) rspec (~> 2.0.0)
term-ansicolor (~> 1.0.5) term-ansicolor (~> 1.0.5)
thor (~> 0.13.6) thor (~> 0.13.6)
+7 -2
View File
@@ -1,4 +1,9 @@
Foreman # Foreman
=======
## Manual
See the [man page](http://ddollar.github.com/foreman) for usage. See the [man page](http://ddollar.github.com/foreman) for usage.
## License
MIT
+1 -1
View File
@@ -1,6 +1,6 @@
module Foreman module Foreman
VERSION = "0.9.1" VERSION = "0.10.0"
class AppDoesNotExist < Exception; end class AppDoesNotExist < Exception; end
+2 -2
View File
@@ -25,7 +25,7 @@ class Foreman::Engine
@order = [] @order = []
procfile.split("\n").inject({}) do |hash, line| procfile.split("\n").inject({}) do |hash, line|
next if line.strip == "" next if line.strip == ""
name, command = line.split(" ", 2) name, command = line.split(/:? +/, 2)
process = Foreman::Process.new(name, command) process = Foreman::Process.new(name, command)
process.color = next_color process.color = next_color
@order << process.name @order << process.name
@@ -69,7 +69,7 @@ class Foreman::Engine
def port_for(process, num, base_port=nil) def port_for(process, num, base_port=nil)
base_port ||= 5000 base_port ||= 5000
offset = processes_in_order.map(&:first).index(process.name) * 100 offset = processes_in_order.map { |p| p.first }.index(process.name) * 100
base_port.to_i + offset + num - 1 base_port.to_i + offset + num - 1
end end