Don't expose the options hash.

This commit is contained in:
Chris Lowder
2012-01-18 17:17:30 +00:00
parent 1b701cddf3
commit a0a2dd9454
2 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ Bluepill.application("<%= app %>", :foreground => false, :log_file => "/var/log/
<% engine.procfile.entries.each do |process| %>
<% 1.upto(concurrency[process.name]) do |num| %>
<% port = engine.port_for(process, num, options[:port]) %>
<% port = engine.port_for(process, num, self.port) %>
app.process("<%= process.name %>-<%=num%>") do |process|
process.start_command = "<%= process.command.gsub("$PORT", port.to_s) %>"

View File

@@ -3,12 +3,11 @@ require "foreman/utils"
class Foreman::Export::Base
attr_reader :location, :engine, :options, :app, :log, :port, :user, :template, :concurrency
attr_reader :location, :engine, :app, :log, :port, :user, :template, :concurrency
def initialize(location, engine, options={})
@location = location
@engine = engine
@options = options
@app = options[:app]
@log = options[:log]
@port = options[:port]