Sha256: aa435a832948a4a175028bd1c63ee2fcb8bab2f5d9fe85962cb5107b23b5dc60

Contents?: true

Size: 674 Bytes

Versions: 16

Compression:

Stored size: 674 Bytes

Contents

module Shindo
  class Tests
    def given_a_load_balancer_service(&block)
      @service = Fog::Rackspace::LoadBalancers.new
      instance_eval(&block)
    end
    def given_a_load_balancer(&block)
        @lb = @service.load_balancers.create({
            :name => ('fog' + Time.now.to_i.to_s),
            :protocol => 'HTTP',
            :port => 80,
            :virtual_ips => [{ :type => 'PUBLIC'}],
            :nodes => [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]
          })
        @lb.wait_for { ready? }
      begin
        instance_eval(&block)
      ensure
        @lb.wait_for { ready? }
        @lb.destroy
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 tests/rackspace/helper.rb
fog-nirvanix-1.8.1 tests/rackspace/helper.rb
fog-parser-fix-1.6.1 tests/rackspace/helper.rb
fog-test-again-1.6.0 tests/rackspace/helper.rb
fog-parser-fix-1.6.0 tests/rackspace/helper.rb
fog-maestrodev-1.8.0.20130114204828 tests/rackspace/helper.rb
fog-maestrodev-1.8.0.20130111070250 tests/rackspace/helper.rb
fog-maestrodev-1.8.0.20130109172219 tests/rackspace/helper.rb
fog-sgonyea-1.8.1 tests/rackspace/helper.rb
fog-1.8.0 tests/rackspace/helper.rb
fog-maestrodev-1.7.0.20121114190951 tests/rackspace/helper.rb
fog-1.7.0 tests/rackspace/helper.rb
fog-1.6.0 tests/rackspace/helper.rb
fog-1.5.0 tests/rackspace/helper.rb
rackspace-fog-1.4.2 tests/rackspace/helper.rb
fog-1.4.0 tests/rackspace/helper.rb