Sha256: 93ac975ea2ca16b03eb09637855f3c0249db1fb20aded6c783a2361a12630db8

Contents?: true

Size: 424 Bytes

Versions: 56

Compression:

Stored size: 424 Bytes

Contents

require "foreman"

class Foreman::ProcfileEntry

  attr_reader :name
  attr_reader :command
  attr_accessor :color

  def initialize(name, command)
    @name = name
    @command = command
  end

  def spawn(num, pipe, basedir, environment, base_port)
    (1..num).to_a.map do |n|
      process = Foreman::Process.new(self, n, base_port + (n-1))
      process.run(pipe, basedir, environment)
      process
    end
  end

end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
foreman-0.45.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.45.0-java lib/foreman/procfile_entry.rb
foreman-0.45.0 lib/foreman/procfile_entry.rb
foreman-0.44.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.44.0-java lib/foreman/procfile_entry.rb
foreman-0.44.0 lib/foreman/procfile_entry.rb
foreman-0.43.0 lib/foreman/procfile_entry.rb
foreman-0.42.0 lib/foreman/procfile_entry.rb
foreman-0.41.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.41.0-java lib/foreman/procfile_entry.rb
foreman-0.41.0 lib/foreman/procfile_entry.rb
foreman-0.40.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.40.0-java lib/foreman/procfile_entry.rb
foreman-0.40.0 lib/foreman/procfile_entry.rb
foreman-0.39.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.39.0-java lib/foreman/procfile_entry.rb
foreman-0.39.0 lib/foreman/procfile_entry.rb
foreman-0.38.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.38.0-java lib/foreman/procfile_entry.rb
foreman-0.38.0 lib/foreman/procfile_entry.rb