Sha256: 68102a621b3c05b68fef30e49ce646e16c4d7272b52b1fd762c30a1d101d5dc8

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

module Httpotemkin
  class Test
    def initialize(out: $stdout)
      @containers = Containers.new
      @containers.out = out
    end

    def add_server(name)
      @containers.add_server(name)
    end

    def run
      @containers.up
      @containers.start_client
      begin
        yield Client.new(@containers)
      ensure
        @containers.stop_client
        @containers.down
      end
    end

    def up
      @containers.up
    end

    def down
      @containers.stop_client
      @containers.down
    end

    def start_client
      @containers.start_client
      Client.new(@containers)
    end

    def stop_client
      @containers.stop_client
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
httpotemkin-0.0.4 lib/test.rb