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