Sha256: d738aea8b271a9758edf5159e566042b8390a125ed76031df7cb20fde7bc2ac4

Contents?: true

Size: 423 Bytes

Versions: 17

Compression:

Stored size: 423 Bytes

Contents

require "erb"
require "foreman/export"

class Foreman::Export::Launchd < Foreman::Export::Base

  def export
    super
    engine.each_process do |name, process|
      1.upto(engine.formation[name]) do |num|
        port = engine.port_for(process, num)
        command_args = process.command.split(" ")
        write_template "launchd/launchd.plist.erb", "#{app}-#{name}-#{num}.plist", binding
      end
    end
  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
foreman-0.64.0 lib/foreman/export/launchd.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/foreman-0.63.0/lib/foreman/export/launchd.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/foreman-0.63.0/lib/foreman/export/launchd.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/foreman-0.63.0/lib/foreman/export/launchd.rb
foreman-0.63.0-mingw32 lib/foreman/export/launchd.rb
foreman-0.63.0-java lib/foreman/export/launchd.rb
foreman-0.63.0 lib/foreman/export/launchd.rb
foreman-0.62.0-mingw32 lib/foreman/export/launchd.rb
foreman-0.62.0-java lib/foreman/export/launchd.rb
foreman-0.62.0 lib/foreman/export/launchd.rb
foreman-0.61.0-mingw32 lib/foreman/export/launchd.rb
foreman-0.61.0-java lib/foreman/export/launchd.rb
foreman-0.61.0 lib/foreman/export/launchd.rb
foreman-0.60.2 lib/foreman/export/launchd.rb
foreman-0.60.0 lib/foreman/export/launchd.rb
foreman-0.59.0 lib/foreman/export/launchd.rb
foreman-0.58.0 lib/foreman/export/launchd.rb