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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ae3f67b3ef3b04b19441944585f8444a79e7ca0
4
- data.tar.gz: 97a7e9a0d4c8325953f004ae8adcb32a2577ee45
3
+ metadata.gz: 115300af980623254e4b5e0553fa85f7807c6aab
4
+ data.tar.gz: ef4d0128303f0caf691338413f4e76500c403854
5
5
  SHA512:
6
- metadata.gz: 4715a179f18ca37b8788154ce745a83bc9004d96a90c75c652b3b406afde985f5d6c3619839748fde9f8321463bbfadb66f79a4a4c5a73861ee0bbce3201368e
7
- data.tar.gz: afc37a7dc0183ab36e1ddb1077ed4883ef650efc46c589e9f44b8eb69659959d6634448040e88e86bdb60cfd530735fb8ddbed68967138186b961f3b704ed5a5
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.0)
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.2)
67
+ sidekiq (4.2.3)
68
68
  concurrent-ruby (~> 1.0)
69
69
  connection_pool (~> 2.2, >= 2.2.0)
70
- rack-protection (~> 1.5)
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)
@@ -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.delete("from")
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
@@ -1,3 +1,3 @@
1
1
  module Dronejob
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler