Don't expose the options hash.

This commit is contained in:
Chris Lowder committed 2012-01-24 15:10:25 +00:00
1 parent 1b701cddf3
commit a0a2dd9454
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ Bluepill.application("<%= app %>", :foreground => false, :log_file => "/var/log/
<% engine.procfile.entries.each do |process| %> <% engine.procfile.entries.each do |process| %>
<% 1.upto(concurrency[process.name]) do |num| %> <% 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| app.process("<%= process.name %>-<%=num%>") do |process|
process.start_command = "<%= process.command.gsub("$PORT", port.to_s) %>" process.start_command = "<%= process.command.gsub("$PORT", port.to_s) %>"
+1 -2
View File
@@ -3,12 +3,11 @@ require "foreman/utils"
class Foreman::Export::Base 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={}) def initialize(location, engine, options={})
@location = location @location = location
@engine = engine @engine = engine
@options = options
@app = options[:app] @app = options[:app]
@log = options[:log] @log = options[:log]
@port = options[:port] @port = options[:port]