# 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}") FileUtils.mkdir_p(log) rescue error("Could not create: #{log}") FileUtils.chown(user, nil, log) rescue error("Could not chown #{log} to #{user}") end
# File lib/foreman/export/base.rb, line 57 def log options[:log] || "/var/log/#{app}" end
Generated with the Darkfish Rdoc Generator 2.