Class: RabbitMQSpec::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbitmq-spec/setup.rb

Overview

Does the AMPQ Broker setup by reading all mqspecs files, evaluating them and connecting to the broker using the provided url in order to create all exchanges, queues and bindings

Examples:

RabbitMQSpec::Setup.run(['/my/path/folde1', 'my/direct_mqspec/file.rb'], 'amqp://guest:guest@localhost:5672')

Defined Under Namespace

Modules: WorldFetcher, WorldSetupper Classes: Runner

Class Method Summary collapse

Class Method Details

.run(files_paths:, url:) ⇒ void



14
15
16
17
18
# File 'lib/rabbitmq-spec/setup.rb', line 14

def run(files_paths:, url:)
  with_client(url) do |client|
    RabbitMQSpec::Setup::Runner.new(files_paths, client).run
  end
end