Sha256: 1366fdfc6351e2fd93abfadee075a9cf2015c6a82d464ec155247dcfff6b3815

Contents?: true

Size: 926 Bytes

Versions: 32

Compression:

Stored size: 926 Bytes

Contents

module Hydra #:nodoc:
  module Listener #:nodoc:
    # Abstract listener that implements all the events
    # but does nothing.
    class Abstract
      # Create a new listener.
      #
      # Output: The IO object for outputting any information.
      # Defaults to STDOUT, but you could pass a file in, or STDERR
      def initialize(output = $stdout)
        @output = output
      end

      # Fired when testing has started
      def testing_begin(files)
      end

      # Fired when testing finishes, after the workers shutdown
      def testing_end
      end

      # Fired after runner processes have been started
      def worker_begin(worker)
      end

      # Fired before shutting down the worker
      def worker_end(worker)
      end

      # Fired when a file is started
      def file_begin(file)
      end

      # Fired when a file is finished
      def file_end(file, output)
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

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