Sha256: ed6aef9d5ec6861c2cd093509c200ecb3e5e492791e24f8ba17dc64b83e21af3
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
# -*- encoding: utf-8 -*- module Bluepill class AppProxy APP_ATTRIBUTES = [:working_dir, :uid, :gid, :environment] attr_accessor *APP_ATTRIBUTES attr_reader :app def initialize(app_name, options) @app = Application.new(app_name.to_s, options) end def process(process_name, &process_block) attributes = {} APP_ATTRIBUTES.each {|a| attributes[a] = self.send(a) } process_factory = ProcessFactory.new(attributes, process_block) process = process_factory.create_process(process_name, @app.pids_dir) group = process_factory.attributes.delete(:group) @app.add_process(process, group) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bluepill-0.0.49 | lib/bluepill/dsl/app_proxy.rb |
bluepill-0.0.48 | lib/bluepill/dsl/app_proxy.rb |
bluepill-0.0.47 | lib/bluepill/dsl/app_proxy.rb |