awful 0.0.32 → 0.0.33

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: c569fc6f359d22a8863c2b1b4ab358325bf0359f
4
- data.tar.gz: ab06b777195a04c59a77e1a02234251933b60a39
3
+ metadata.gz: f37094621cce1973896114b3806bbc9c9fbf8ab0
4
+ data.tar.gz: 5447b9590bf70c2b9289c069c8395c3f79806744
5
5
  SHA512:
6
- metadata.gz: 290869d5eecb265b8540f147075fc087b36410004d18baa2e3347428c959b015f6965078266a124e618f0f151cfcf78adac49623725fa42d11cb6c77fd3e11b2
7
- data.tar.gz: 4d45f0430996ad16e4d6d5b4502e999c03877ebc69787119b4f344d705cff19a5df04b7097b637163cc7f3a78625981f4bd168907e80b5f5760d333928c223c8
6
+ metadata.gz: 4ac0de6a8d3cb0c8d702827e20155d25193ed44ce9614f31c6b79ee7b14c00fa24ac5d7c0af5cb4c870c1205013bf68b92dbbe6b102cfe93e8e8d8920f6e8d28
7
+ data.tar.gz: 12d1a194550ff815ddb52f830c6b1f7de94bf28cf1eefd2b67366c6f5c6f7143bf2718332ebecddcb115764bdf0f53119c444c759b19f6141e81af9249e6500a
data/bin/asgn ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/ruby
2
+ #-*- mode: ruby; -*-
3
+
4
+ require 'awful'
5
+ require 'awful/auto_scaling_notifications'
6
+
7
+ Awful::AutoScalingNotifications.start(ARGV)
@@ -0,0 +1,26 @@
1
+ module Awful
2
+
3
+ class AutoScalingNotifications < Cli
4
+
5
+ desc 'ls [NAMES]', 'describe notification configurations for named groups'
6
+ method_option :long, aliases: '-l', default: false, desc: 'Long listing'
7
+ def ls(*names)
8
+ autoscaling.describe_notification_configurations(auto_scaling_group_names: names).notification_configurations.tap do |notifications|
9
+ if options[:long]
10
+ print_table notifications.map { |n| [n.auto_scaling_group_name, n.notification_type, n.topic_arn] }
11
+ else
12
+ puts notifications.map(&:notification_type)
13
+ end
14
+ end
15
+ end
16
+
17
+ desc 'types', 'describe auto-scaling notification types'
18
+ def types
19
+ autoscaling.describe_auto_scaling_notification_types.auto_scaling_notification_types.tap do |types|
20
+ puts types
21
+ end
22
+ end
23
+
24
+ end
25
+
26
+ end
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.32"
2
+ VERSION = "0.0.33"
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.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ email:
86
86
  executables:
87
87
  - ami
88
88
  - asg
89
+ - asgn
89
90
  - dp
90
91
  - dyn
91
92
  - dynstr
@@ -109,6 +110,7 @@ files:
109
110
  - awful.gemspec
110
111
  - bin/ami
111
112
  - bin/asg
113
+ - bin/asgn
112
114
  - bin/dp
113
115
  - bin/dyn
114
116
  - bin/dynstr
@@ -124,6 +126,7 @@ files:
124
126
  - lib/awful.rb
125
127
  - lib/awful/ami.rb
126
128
  - lib/awful/auto_scaling.rb
129
+ - lib/awful/auto_scaling_notifications.rb
127
130
  - lib/awful/datapipeline.rb
128
131
  - lib/awful/dynamodb.rb
129
132
  - lib/awful/dynamodb_streams.rb