lib/foreman/export/base.rb in foreman-0.6.0 vs lib/foreman/export/base.rb in foreman-0.7.0

- old
+ new

@@ -1,6 +1,7 @@ require "foreman/export" +require "foreman/utils" class Foreman::Export::Base attr_reader :engine @@ -22,19 +23,9 @@ puts "[foreman export] %s" % message end def export_template(name) File.read(File.expand_path("../../../../export/#{name}", __FILE__)) - end - - def parse_concurrency(concurrency) - @concurrency ||= begin - pairs = concurrency.to_s.gsub(/\s/, "").split(",") - pairs.inject(Hash.new(1)) do |hash, pair| - process, amount = pair.split("=") - hash.update(process => amount.to_i) - end - end end def port_for(base_port, app, num) base_port ||= 5000 offset = engine.processes.keys.sort.index(app) * 100