class RabbitMQSpec::Setup::Runner
@api private Read each file and setups RabbitMQ based on each mqspec defined on them @example
RabbitMQSpec::Setup::Runner.run( [ '/my/path/folde1', 'my/direct_mqspec/file.rb'] ], bunny_client)
Public Class Methods
new(paths_to_read, client)
click to toggle source
# File lib/rabbitmq-spec/setup/runner.rb, line 11 def initialize(paths_to_read, client) @paths_to_read = paths_to_read @client = client end
Public Instance Methods
run()
click to toggle source
# File lib/rabbitmq-spec/setup/runner.rb, line 16 def run worlds.each do |world| setup_world(world) end end
Private Instance Methods
setup_world(world)
click to toggle source
# File lib/rabbitmq-spec/setup/runner.rb, line 27 def setup_world(world) RabbitMQSpec::Setup::WorldSetupper.call(world, @client) end
worlds()
click to toggle source
private methods
# File lib/rabbitmq-spec/setup/runner.rb, line 23 def worlds @paths_to_read.map { |path| RabbitMQSpec::Setup::WorldFetcher.call(path) } end