awful 0.0.81 → 0.0.82

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: 1a9405b380fa06ab1bd50740ad5831e107a66caa
4
- data.tar.gz: 71e8d90a5d2d6b03784a6cddcf9b739d388a28fe
3
+ metadata.gz: a3bfda266144bf9fe2cf34ef36a17d153936a796
4
+ data.tar.gz: e348c95715fe5266f46d07901e1c1245ee57b8e8
5
5
  SHA512:
6
- metadata.gz: 93ac568edb2335d5cdfff269ec2f94114e93a8ab55d10928935343d33046b0e0579bc476fe8353824491063ade92da957acb311e5dd17fb2ed5780596afa76a5
7
- data.tar.gz: fb2822a01616f3abbf052a2f9e1035ff25b2809ec839c6c0c22108191cfb10db0405656597604a835a819d0604d6823add75de330314f796cec62fb10e25441f
6
+ metadata.gz: d698f9e77df56dbe5b45e0fa498a93b86173b9d51d6c3e136e97122eb5d5136481aea6ee607d7e69ea718109540e78c6449fa40ccf25f2ae5e00284cf400d36c
7
+ data.tar.gz: 9d93b2e95fc2bdbff18aaac93f1b2e22ca2aa28207d982523c7d949a34dfe9690be6e1dcca01f7217fb8bc37d112ea1425a47d87c932820b7f3e367d4f4a22d7
@@ -75,6 +75,15 @@ module Awful
75
75
  end
76
76
  end
77
77
 
78
+ desc 'tag NAME TAG', 'get value of a single tag for given ELB'
79
+ def tag(name, key)
80
+ elb.describe_tags(load_balancer_names: [name]).tag_descriptions.first.tags.find do |tag|
81
+ tag.key == key
82
+ end.tap do |tag|
83
+ puts tag.value
84
+ end
85
+ end
86
+
78
87
  desc 'dns NAME', 'get DNS names for load-balancers matching NAME'
79
88
  def dns(name)
80
89
  all_matching_elbs(name).map(&:dns_name).tap do |dns_names|
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.81'
2
+ VERSION = '0.0.82'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.81
4
+ version: 0.0.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister