class RakeGatling::Commands::GatlingCommand

Public Class Methods

new(shell) click to toggle source
# File lib/src/GatlingCommand.rb, line 6
def initialize(shell)
        @shell = shell
        @parameter_builder = GatlingParameterBuilder.new
end

Public Instance Methods

execute(parameters) click to toggle source
# 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