Class: RakeGatling::Commands::GatlingCommand
- Inherits:
-
Object
- Object
- RakeGatling::Commands::GatlingCommand
- Defined in:
- lib/src/GatlingCommand.rb
Instance Method Summary collapse
- #execute(parameters) ⇒ Object
-
#initialize(shell) ⇒ GatlingCommand
constructor
A new instance of GatlingCommand.
Constructor Details
#initialize(shell) ⇒ GatlingCommand
Returns a new instance of GatlingCommand.
6 7 8 9 |
# File 'lib/src/GatlingCommand.rb', line 6 def initialize(shell) @shell = shell @parameter_builder = GatlingParameterBuilder.new end |
Instance Method Details
#execute(parameters) ⇒ Object
11 12 13 14 15 |
# File 'lib/src/GatlingCommand.rb', line 11 def execute(parameters) gatling_parameters = @parameter_builder.buildFrom(parameters) gatling_file_location = parameters[:gatling_file_location] @shell.execute("#{gatling_file_location} #{gatling_parameters}") end |