Class: Threeman::Procfile
- Inherits:
-
Foreman::Procfile
- Object
- Foreman::Procfile
- Threeman::Procfile
- Defined in:
- lib/threeman/procfile.rb
Instance Method Summary collapse
Instance Method Details
#commands(workdir, port, command_prefix, formation) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/threeman/procfile.rb', line 6 def commands(workdir, port, command_prefix, formation) commands = [] entries do |name, command| count = formation[name] command_with_prefix = [command_prefix, command].compact.join(' ') (0...count).each do |index| commands << Threeman::Command.new(name, command_with_prefix, workdir, port + index) end end commands end |