dronejob 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/dronejob/command.rb +2 -1
- data/lib/dronejob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115300af980623254e4b5e0553fa85f7807c6aab
|
4
|
+
data.tar.gz: ef4d0128303f0caf691338413f4e76500c403854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6365572a94ef06f08b93c619eba7219b28eb0e484b105fa10e1a026a397ffe1b6b5b23124934c5cca8986754f543e3211d762d5e4e8468b1c4fc1b27110487a
|
7
|
+
data.tar.gz: b2dc16c5dbf0cd2fc0ed6dfa613e60eaff234a92303190e75b3ea3d255854a2b28b02dfab95843fc460d727816e28a96f0da83f9591389be15c2da8de1c13e55
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dronejob (1.2.
|
4
|
+
dronejob (1.2.1)
|
5
5
|
activejob (~> 4.2)
|
6
6
|
bundler (>= 1.3.0, < 2.0)
|
7
7
|
git (~> 1.2)
|
@@ -64,10 +64,10 @@ GEM
|
|
64
64
|
rspec-support (~> 3.4.0)
|
65
65
|
rspec-support (3.4.1)
|
66
66
|
rubyzip (1.2.0)
|
67
|
-
sidekiq (4.2.
|
67
|
+
sidekiq (4.2.3)
|
68
68
|
concurrent-ruby (~> 1.0)
|
69
69
|
connection_pool (~> 2.2, >= 2.2.0)
|
70
|
-
rack-protection (
|
70
|
+
rack-protection (>= 1.5.0)
|
71
71
|
redis (~> 3.2, >= 3.2.1)
|
72
72
|
sidekiq-status (0.6.0)
|
73
73
|
sidekiq (>= 2.7)
|
data/lib/dronejob/command.rb
CHANGED
@@ -102,13 +102,14 @@ module Dronejob
|
|
102
102
|
jobs_dir = WorkspaceDir.new("tmp/jobs")
|
103
103
|
jobs = jobs_dir.exists? ? jobs_dir.children.map(&:name) : []
|
104
104
|
method_option(:job, type: :string, required: true, enum: jobs)
|
105
|
+
method_option(:from, aliases: "-f", type: :string)
|
105
106
|
def continue
|
106
107
|
job_dir = WorkspaceDir.new("tmp/jobs").dir(options.job)
|
107
108
|
dronejob_config = job_dir.file("dronejob.yml").read_yaml
|
108
109
|
job_params = dronejob_config[:job_params]
|
109
110
|
job_identifier = dronejob_config[:job_identifier]
|
110
111
|
worker = Dronejob::Loader.workers[job_identifier]
|
111
|
-
job_params
|
112
|
+
job_params["from"] = options.from
|
112
113
|
Dronejob::Base.queue_adapter = job_params["queue_adapter"]
|
113
114
|
worker.perform_now(job_params)
|
114
115
|
end
|
data/lib/dronejob/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dronejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|