Class: RabbitMQSpec::Setup::Runner Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Read each file and setups RabbitMQ based on each mqspec defined on them

Examples:

RabbitMQSpec::Setup::Runner.run(
   [
     '/my/path/folde1',
     'my/direct_mqspec/file.rb']
   ], bunny_client)

Instance Method Summary collapse

Constructor Details

#initialize(paths_to_read, client) ⇒ Runner

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Runner.



11
12
13
14
# File 'lib/rabbitmq-spec/setup/runner.rb', line 11

def initialize(paths_to_read, client)
  @paths_to_read = paths_to_read
  @client = client
end

Instance Method Details

#runvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
20
# File 'lib/rabbitmq-spec/setup/runner.rb', line 16

def run
  worlds.each do |world|
    setup_world(world)
  end
end