Sha256: 353945513c56312132e29a5fb65fffd7563c6ea278c75bc77185d93ea662ccab

Contents?: true

Size: 914 Bytes

Versions: 12

Compression:

Stored size: 914 Bytes

Contents

module HydraExtension
  module RunnerListener
    class RunnerBeginTest < Hydra::RunnerListener::Abstract
      # Fired by the runner just before requesting the first file
      def runner_begin( runner )
        FileUtils.touch File.expand_path(File.join(Dir.consistent_tmpdir, 'alternate_hydra_test.txt'))
      end
    end

    class RunnerEndTest < Hydra::RunnerListener::Abstract
      # Fired by the runner just before requesting the first file
      def runner_begin( runner )
        FileUtils.touch File.expand_path(File.join(Dir.consistent_tmpdir, 'runner_began_flag')) #used to know when the runner is ready
      end
      # Fired by the runner just after stoping
      def runner_end( runner )
        # NOTE: do not use trace here
        #runner.trace "Ending runner"
        FileUtils.touch File.expand_path(File.join(Dir.consistent_tmpdir, 'alternate_hydra_test.txt'))
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
ngauthier-hydra-0.24.0 test/fixtures/runner_listeners.rb
nulogy-hydra-0.26.0 test/fixtures/runner_listeners.rb
arturop-hydra-0.25.0 test/fixtures/runner_listeners.rb
arturop-hydra-0.24.0 test/fixtures/runner_listeners.rb
hydra-0.24.0 test/fixtures/runner_listeners.rb
nulogy-hydra-0.23.2.1 test/fixtures/runner_listeners.rb
justinf-hydra-0.23.8 test/fixtures/runner_listeners.rb
justinf-hydra-0.23.7 test/fixtures/runner_listeners.rb
justinf-hydra-0.23.6 test/fixtures/runner_listeners.rb
justinf-hydra-0.23.5 test/fixtures/runner_listeners.rb
justinf-hydra-0.23.4 test/fixtures/runner_listeners.rb
arturop-hydra-0.23.4 test/fixtures/runner_listeners.rb