Class: RakeGatling::Gatling

Inherits:
Object
  • Object
show all
Includes:
Commands
Defined in:
lib/src/Gatling.rb

Instance Method Summary collapse

Constructor Details

#initialize(shell, results_repository) ⇒ Gatling

Returns a new instance of Gatling.



7
8
9
10
11
# 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

Instance Method Details

#start(parameters) ⇒ Object



13
14
15
16
17
18
# 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