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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f709d2a89c46e896aa944243da0376746fe472c
4
- data.tar.gz: 3dfc5c028fe2bf998623ebeea913cc1355566dcf
3
+ metadata.gz: 5329cca0c6c6012b2450a3f196a88fe6fc78a792
4
+ data.tar.gz: cb467149ef90abfb695b6b508c800924875de07f
5
5
  SHA512:
6
- metadata.gz: 2d7b9c8a1c84b6d737853b8779921ea04ea27d595e8b3e87b78c14b95b5367de391e19fb8317c2f7b9e9bf47b421c14c80c9b575ac616bcf7ccbd4681a1ca285
7
- data.tar.gz: 7542e490d4271b4758720df0344f4780aefca917da16c30f74c875bdd2e753806c68d4559367ff4a91595ade6adfac2400a7f48bec0e4b49acbc7206b76a124a
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.103'
2
+ VERSION = '0.0.104'
3
3
  end
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.103
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-20 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler