# File lib/foreman/export/base.rb, line 16 def initialize(location, engine, options={}) @location = location @engine = engine @options = options.dup @formation = engine.formation # deprecated def port Foreman::Export::Base.warn_deprecation! engine.base_port end # deprecated def template Foreman::Export::Base.warn_deprecation! options[:template] end # deprecated def @engine.procfile Foreman::Export::Base.warn_deprecation! @processes.map do |process| OpenStruct.new( :name => @names[process], :process => process ) end end end
# File lib/foreman/export/base.rb, line 53 def app options[:app] || "app" end
# File lib/foreman/export/base.rb, line 46 def export error("Must specify a location") unless location FileUtils.mkdir_p(location) rescue error("Could not create: #{location}") chown user, log chown user, run end
# File lib/foreman/export/base.rb, line 57 def log options[:log] || "/var/log/#{app}" end
# File lib/foreman/export/base.rb, line 61 def run options[:run] || "/var/run/#{app}" end
Generated with the Darkfish Rdoc Generator 2.