class Kelbim::Tester
Public Class Methods
new(dsl)
click to toggle source
# File lib/kelbim/tester.rb, line 9 def initialize(dsl) @dsl = dsl end
test(dsl)
click to toggle source
# File lib/kelbim/tester.rb, line 4 def test(dsl) self.new(dsl).test end
Public Instance Methods
test()
click to toggle source
# File lib/kelbim/tester.rb, line 13 def test require 'rspec/autorun' @dsl.ec2s.each do |vpc, ec2| vpc ||= 'classic' ec2.load_balancers.each do |lb| if lb.spec RSpec.describe("#{vpc || :classic} > #{lb.name}") { it(&lb.spec) } end end end end