class RakeGatling::Gatling
Public Class Methods
new(shell, results_repository)
click to toggle source
# File lib/src/Gatling.rb, line 7 def initialize(shell, results_repository) @shell = shell @run_gatling = GatlingCommand.new(shell) @result_monitor = ResultMonitor.new(results_repository) end
Public Instance Methods
start(parameters)
click to toggle source
# File lib/src/Gatling.rb, line 13 def start(parameters) @shell.remove_directory(parameters[:results_directory]) @run_gatling.execute(parameters) @shell.move_directory_contents_up(parameters[:results_directory]) @result_monitor.check_for_failures end