Class: DeepTest::Distributed::LandingFleet

Inherits:
Object
  • Object
show all
Defined in:
lib/deep_test/distributed/landing_fleet.rb

Instance Method Summary collapse

Constructor Details

#initialize(options, slaves) ⇒ LandingFleet

Returns a new instance of LandingFleet.



4
5
6
7
# File 'lib/deep_test/distributed/landing_fleet.rb', line 4

def initialize(options, slaves)
  DeepTest.logger.debug { "LandingFleet#initialize #{slaves.length} slaves" }
  @slave_controller = DispatchController.new(options, slaves)
end

Instance Method Details

#deploy_agentsObject



24
25
26
27
# File 'lib/deep_test/distributed/landing_fleet.rb', line 24

def deploy_agents
  DeepTest.logger.debug { "dispatch deploy_agents" }
  @slave_controller.dispatch :deploy_agents
end

#establish_beachhead(options) ⇒ Object



9
10
11
12
# File 'lib/deep_test/distributed/landing_fleet.rb', line 9

def establish_beachhead(options)
  DeepTest.logger.debug { "dispatch establish_beachhead for #{options.origin_hostname}" }
  @slave_controller.dispatch :establish_beachhead, options
end

#load_files(files) ⇒ Object



19
20
21
22
# File 'lib/deep_test/distributed/landing_fleet.rb', line 19

def load_files(files)
  DeepTest.logger.debug { "dispatch load_files" }
  @slave_controller.dispatch :load_files, files
end

#push_code(options) ⇒ Object



14
15
16
17
# File 'lib/deep_test/distributed/landing_fleet.rb', line 14

def push_code(options)
  DeepTest.logger.debug { "dispatch push_code for #{options.origin_hostname}" }
  @slave_controller.dispatch :push_code, options
end