kiq_tock 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kiq_tock/scheduler.rb +4 -0
- data/lib/kiq_tock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0c31d7fc88dfd9041767079be36217c688b01d1e199cf6dfcc12f3b89ec3fda
|
4
|
+
data.tar.gz: 03fc6d473aaf652276376aa174b7b14ee9127253efb0bb70e96673a4a9608abb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4131b9e240fa0c84c2bd80d7b1d10cf623f078131fcd1728cdf1eee3ab0a9b0e3d8c13cdb34f359e9f53921f2c15fa4cfea80af8924a591b769c32c05a95a588
|
7
|
+
data.tar.gz: 4ddfae4fd8e20890f20a01d2337166572c92f48eedd0064d0a6bee9d301a7e2ba537d59c620379693e7802790205180e82064d4f7f0c7a65bcc6fc35b922438b
|
data/lib/kiq_tock/scheduler.rb
CHANGED
@@ -8,6 +8,10 @@ module KiqTock
|
|
8
8
|
CRON_FIELDS = %i[minutes hours days_of_month days_of_week months_of_year].freeze
|
9
9
|
DEFAULT_JOBS_FILE = File.expand_path 'sidekiq/periodic_jobs.yml'
|
10
10
|
|
11
|
+
def self.register_jobs(scheduler:, jobs_file: nil)
|
12
|
+
new(scheduler: scheduler, jobs_file: jobs_file).register_jobs
|
13
|
+
end
|
14
|
+
|
11
15
|
def initialize(scheduler:, jobs_file: nil)
|
12
16
|
@jobs_file = jobs_file
|
13
17
|
@scheduler = scheduler
|
data/lib/kiq_tock/version.rb
CHANGED