Module: DuckTest::Console
- Includes:
- LoggerHelper
- Defined in:
- lib/duck_test/console.rb
Overview
Module to include in the standard IRB class to provide a reference to DuckTest commands.
Instance Method Summary (collapse)
-
- (Object) duck
Returns an instance of Commands class to allow a user to perform tasks like the following directly in the Rails console.
Methods included from LoggerHelper
Instance Method Details
- (Object) duck
Returns an instance of DuckTest::Commands class to allow a user to perform tasks like the following directly in the Rails console.
duck.speed 1 # sets the queue speed
duck.latency 2 # sets the queue latency
13 14 15 |
# File 'lib/duck_test/console.rb', line 13 def duck return DuckTest::Commands.new end |