Sha256: a4497997e4e0d7fbd80157ae6eaa1bce844f6c43c77b357595f0b948d1e49b23

Contents?: true

Size: 715 Bytes

Versions: 19

Compression:

Stored size: 715 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
      def testing_end
      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

19 entries across 19 versions & 2 rubygems

Version Path
hydra-0.19.0 lib/hydra/listener/abstract.rb
hydra-0.18.0 lib/hydra/listener/abstract.rb
sskirby-hydra-0.17.1 lib/hydra/listener/abstract.rb
sskirby-hydra-0.16.10 lib/hydra/listener/abstract.rb
hydra-0.17.0 lib/hydra/listener/abstract.rb
sskirby-hydra-0.16.9 lib/hydra/listener/abstract.rb
hydra-0.16.7 lib/hydra/listener/abstract.rb
hydra-0.16.6 lib/hydra/listener/abstract.rb
hydra-0.16.5 lib/hydra/listener/abstract.rb
hydra-0.16.4 lib/hydra/listener/abstract.rb
hydra-0.16.3 lib/hydra/listener/abstract.rb
hydra-0.16.2 lib/hydra/listener/abstract.rb
hydra-0.16.1 lib/hydra/listener/abstract.rb
hydra-0.16.0 lib/hydra/listener/abstract.rb
hydra-0.15.1 lib/hydra/listener/abstract.rb
hydra-0.15.0 lib/hydra/listener/abstract.rb
hydra-0.14.1 lib/hydra/listener/abstract.rb
hydra-0.14.0 lib/hydra/listener/abstract.rb
hydra-0.13.0 lib/hydra/listener/abstract.rb