• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

payrollhero / dispatch-rider / #3015

02 Sep 2022 11:22PM UTC coverage: 0.409% (-84.7%) from 85.154%
#3015

push

web-flow
Layout/SpaceInsideStringInterpolation-20220901233630 (#89)

* :police_car: regenerate rubocop todo

* :police_car: Layout/SpaceInsideStringInterpolation

* :police_car: regenerate rubocop todo

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>

0 of 1 new or added line in 1 file covered. (0.0%)

1529 existing lines in 63 files now uncovered.

7 of 1711 relevant lines covered (0.41%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/dispatch-rider/runner.rb
UNCOV
1
module DispatchRider
×
UNCOV
2
  class Runner
×
UNCOV
3
    include Callbacks::Support
×
4

UNCOV
5
    def self.run
×
UNCOV
6
      new.process
×
UNCOV
7
    end
×
8

UNCOV
9
    def initialize
×
UNCOV
10
      callbacks.invoke(:initialize) do
×
UNCOV
11
        ready
×
UNCOV
12
        set_queue_from_config
×
UNCOV
13
      end
×
UNCOV
14
    end
×
UNCOV
15
    private_class_method :new
×
16

UNCOV
17
    def process
×
UNCOV
18
      callbacks.invoke(:process) do
×
UNCOV
19
        logger.info "Running..."
×
UNCOV
20
        @subscriber.process
×
UNCOV
21
      end
×
UNCOV
22
    end
×
23

UNCOV
24
    private
×
25

UNCOV
26
    delegate :config, to: :DispatchRider
×
UNCOV
27
    delegate :logger, to: :config
×
28

UNCOV
29
    def ready
×
UNCOV
30
      logger.info "Creating subscriber..."
×
UNCOV
31
      @subscriber = config.subscriber.new
×
32

UNCOV
33
      config.handlers.each do |handler_name|
×
UNCOV
34
        logger.info "Registering #{handler_name} handler..."
×
UNCOV
35
        @subscriber.register_handler(handler_name)
×
UNCOV
36
      end
×
UNCOV
37
    end
×
38

UNCOV
39
    def set_queue_from_config
×
UNCOV
40
      kind = config.queue_kind
×
UNCOV
41
      info = config.queue_info
×
42

UNCOV
43
      logger.info "Setting #{kind} queue @ #{info.to_json} ..."
×
UNCOV
44
      @subscriber.register_queue(kind, info)
×
UNCOV
45
      @subscriber.setup_demultiplexer(kind, config.error_handler)
×
UNCOV
46
    end
×
UNCOV
47
  end
×
UNCOV
48
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc