Sha256: b681eb5ece753f82694faadbe54715968fa37bd803eef7ab01f5853382ad83f6
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
require 'erb' module Applb class Converter def initialize(lbs_by_vpc_id, tags_by_arn) @lbs_by_vpc_id = lbs_by_vpc_id @tags_by_arn = tags_by_arn end def convert @lbs_by_vpc_id.each do |vpc_id, lbs_by_name| yield vpc_id, output_alb(vpc_id, @tags_by_arn, lbs_by_name) end end private def output_alb(vpc_id, tags_by_arn, lbs_by_name) ERB.new(File.read('lib/applb/output_alb.erb'), nil, '-').result(binding) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
applb-0.1.1 | lib/applb/converter.rb |
applb-0.1.0 | lib/applb/converter.rb |