Sha256: 0bcc73067b0b91be9dd1833c71a41220ad9b0b49719bcbece3fa6ed10a40d0c0

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 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

  def to_s
    "#{name}: #{command}"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman-0.47.0 lib/foreman/procfile_entry.rb
foreman-0.46.0-mingw32 lib/foreman/procfile_entry.rb
foreman-0.46.0-java lib/foreman/procfile_entry.rb
foreman-0.46.0 lib/foreman/procfile_entry.rb