Sha256: 058e193621327b3c2c396333a702af23fa2e509695073c037764a047910abb8b

Contents?: true

Size: 1.35 KB

Versions: 45

Compression:

Stored size: 1.35 KB

Contents

module Hydra #:nodoc:
  module Messages #:nodoc:
    module Runner #:nodoc:
      # Message indicating that a Runner needs a file to run
      class RequestFile < Hydra::Message
        def handle(worker, runner) #:nodoc:
          worker.request_file(self, runner)
        end
      end

      # Message for the Runner to respond with its results
      class Results < Hydra::Message
        # The output from running the test
        attr_accessor :output
        # The file that was run
        attr_accessor :file
        def serialize #:nodoc:
          super(:output => @output, :file => @file)
        end
        def handle(worker, runner) #:nodoc:
          worker.relay_results(self, runner)
        end
      end

      # Message a runner sends to a worker to verify the connection
      class Ping < Hydra::Message
        def handle(worker, runner) #:nodoc:
          # We don't do anything to handle a ping. It's just to test
          # the connectivity of the IO
        end
      end

      # The runner forks to run rspec messages
      # so that specs don't get rerun. It uses
      # this message to report the results. See
      # Runner::run_rspec_file.
      class RSpecResult < Hydra::Message
        # the output of the spec
        attr_accessor :output
        def serialize #:nodoc:
          super(:output => @output)
        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 7 rubygems

Version Path
ngauthier-hydra-0.24.0 lib/hydra/message/runner_messages.rb
nulogy-hydra-0.26.0 lib/hydra/message/runner_messages.rb
arturop-hydra-0.25.0 lib/hydra/message/runner_messages.rb
arturop-hydra-0.24.0 lib/hydra/message/runner_messages.rb
hydra-0.24.0 lib/hydra/message/runner_messages.rb
nulogy-hydra-0.23.2.1 lib/hydra/message/runner_messages.rb
justinf-hydra-0.23.8 lib/hydra/message/runner_messages.rb
justinf-hydra-0.23.7 lib/hydra/message/runner_messages.rb
justinf-hydra-0.23.6 lib/hydra/message/runner_messages.rb
justinf-hydra-0.23.5 lib/hydra/message/runner_messages.rb
justinf-hydra-0.23.4 lib/hydra/message/runner_messages.rb
arturop-hydra-0.23.4 lib/hydra/message/runner_messages.rb
sskirby-hydra-0.23.3 lib/hydra/message/runner_messages.rb
hydra-0.23.3 lib/hydra/message/runner_messages.rb
hydra-0.23.2 lib/hydra/message/runner_messages.rb
hydra-0.23.1 lib/hydra/message/runner_messages.rb
hydra-0.23.0 lib/hydra/message/runner_messages.rb
hydra-0.22.2 lib/hydra/message/runner_messages.rb
hydra-0.22.1 lib/hydra/message/runner_messages.rb
hydra-0.22.0 lib/hydra/message/runner_messages.rb