awful 0.0.103 → 0.0.104
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/sqs.rb +12 -0
- data/lib/awful/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: 5329cca0c6c6012b2450a3f196a88fe6fc78a792
|
4
|
+
data.tar.gz: cb467149ef90abfb695b6b508c800924875de07f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bb41e808668e4fecc69ac6d9c5502675ef336ce7219a10a801180ae178dcb9e28117963d07ffde578b7fb43949256c02ecf9a852ec7fa1da3696f919f009558
|
7
|
+
data.tar.gz: f49db49a66e70a0ebeb2bb3544cbc89eccd2cc5bea371f742719f729a6ba1aae6f7b471be535a4b934b11f6c2ec4509820d1ffab9d083bc11bf78596cd468c64
|
data/lib/awful/sqs.rb
CHANGED
@@ -47,6 +47,18 @@ module Awful
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
desc 'create QUEUE_NAME', 'create a new queue'
|
51
|
+
def create(name)
|
52
|
+
sqs.create_queue(queue_name: name).queue_url.tap(&method(:puts))
|
53
|
+
end
|
54
|
+
|
55
|
+
desc 'delete NAME_OR_URL', 'delete the queue'
|
56
|
+
def delete(name)
|
57
|
+
if yes? "Really delete queue #{name}", :yellow
|
58
|
+
sqs.delete_queue(queue_url: queue_url(name))
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
50
62
|
desc 'dump NAME_OR_URL ...', 'get attributes for queues by queue name or url'
|
51
63
|
def dump(*names)
|
52
64
|
names.map do |name|
|
data/lib/awful/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.104
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ric Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|