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 +4 -4
- data/lib/awful/elb.rb +9 -0
- data/lib/awful/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3bfda266144bf9fe2cf34ef36a17d153936a796
|
4
|
+
data.tar.gz: e348c95715fe5266f46d07901e1c1245ee57b8e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d698f9e77df56dbe5b45e0fa498a93b86173b9d51d6c3e136e97122eb5d5136481aea6ee607d7e69ea718109540e78c6449fa40ccf25f2ae5e00284cf400d36c
|
7
|
+
data.tar.gz: 9d93b2e95fc2bdbff18aaac93f1b2e22ca2aa28207d982523c7d949a34dfe9690be6e1dcca01f7217fb8bc37d112ea1425a47d87c932820b7f3e367d4f4a22d7
|
data/lib/awful/elb.rb
CHANGED
@@ -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|
|
data/lib/awful/version.rb
CHANGED