allq 0.3.93 → 0.3.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/allq.rb +1 -1
- data/lib/allq/actions/release.rb +1 -0
- data/lib/allq/client.rb +10 -0
- data/lib/allq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4c0da4315e0e69a822ece95505b46328d7bf5b7ad9c2d3231c03fbd49e18343
|
|
4
|
+
data.tar.gz: cfa496a06e3a5b654ecf207429ed9f1b5594faf1863e128c658dbeaf1152ba97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2fd73c30d68d2256ee91c36e82e745dd94655181b5d65fdfe4993b687dd1ebe395b27704511268319e34dbd1dfc161fabb6aefb60d5e40e172fa98555461095
|
|
7
|
+
data.tar.gz: 139eb3bc2f8418c59cf88ba6ef0ef0d2ceb56c027c0332c4a4730c66949117425292271bd16ec36eb47358bc6210d6544d5e19af6aa0de35516c4eee6a92a41e
|
data/lib/allq.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require_relative "allq/#{f}"
|
|
4
4
|
end
|
|
5
5
|
|
|
6
|
-
%w(base get delete done put release stats touch kick peek clear bury parent_job).each do |f|
|
|
6
|
+
%w(base get delete done put release stats touch kick peek clear bury parent_job drain add_server).each do |f|
|
|
7
7
|
require_relative "allq/actions/#{f}"
|
|
8
8
|
end
|
|
9
9
|
|
data/lib/allq/actions/release.rb
CHANGED
data/lib/allq/client.rb
CHANGED
|
@@ -25,6 +25,14 @@ class AllQ
|
|
|
25
25
|
@parent_job_action.snd(data)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
def add_server(server_url)
|
|
29
|
+
@add_server_action.snd(server_url: server_url)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def drain(server_id)
|
|
33
|
+
@drain_action.snd(server_id: server_id)
|
|
34
|
+
end
|
|
35
|
+
|
|
28
36
|
def kick(job)
|
|
29
37
|
@kick_action.snd(job: job)
|
|
30
38
|
end
|
|
@@ -95,6 +103,8 @@ class AllQ
|
|
|
95
103
|
puts "AllQ Connection Started --#{@url}"
|
|
96
104
|
@connection = AllQ::Connection.new(@url)
|
|
97
105
|
@get_action = AllQ::Get.new(@connection, self)
|
|
106
|
+
@drain_action = AllQ::Drain.new(@connection, self)
|
|
107
|
+
@add_server_action = AllQ::AddServer.new(@connection, self)
|
|
98
108
|
@put_action = AllQ::Put.new(@connection, self)
|
|
99
109
|
@done_action = AllQ::Done.new(@connection, self)
|
|
100
110
|
@stats_action = AllQ::Stats.new(@connection, self)
|
data/lib/allq/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: allq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.94
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|