Sha256: 8f92ec832331be4e615361e33271b890035b5fc6aa2ee8ada31da843f1a02feb

Contents?: true

Size: 963 Bytes

Versions: 4

Compression:

Stored size: 963 Bytes

Contents

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

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

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

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

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
deep_test_pre-2.0 lib/deep_test/distributed/landing_fleet.rb
jstorimer-deep-test-2.0.0 lib/deep_test/distributed/landing_fleet.rb
jstorimer-deep-test-0.2.0 lib/deep_test/distributed/landing_fleet.rb
jstorimer-deep-test-0.1.0 lib/deep_test/distributed/landing_fleet.rb