awful 0.0.76 → 0.0.77

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: 7b84cf0cb78f2445f7442c133a2c2af0737410d4
4
- data.tar.gz: 9011b1c6a25a9a4e9943a63b60d356d08fe217d9
3
+ metadata.gz: f59dd57517b669d9833f35b807c515a15c5c30f5
4
+ data.tar.gz: 559e8196c00db0cdce4a29fd86373165ed1afdfc
5
5
  SHA512:
6
- metadata.gz: acc1cb32a882ab33fd5e35d8997f50d058b778a721cb7729406a721b7b82a5054c52d057225eb99c0cb17f57cfaa1f8f458b485b24d9f1ced1ccca3c7081f39d
7
- data.tar.gz: 02206a2cfb79721246c58c0562f729fbd56df0f3f7281597a2bb9c2c524c27799c7d31d0907d254db632aa28650df2eec44bc572a521b8960d1fc65b6b38ad6f
6
+ metadata.gz: 83320c5cf646f098171f4fd5328a762308f2e3e0fa2cf72454d4fdf9d705ba3b8dbe5520409097038a7ab07ba59a17229781ab221f27beb4392f3486ff841889
7
+ data.tar.gz: 5cc553c729e5a41fdd68b83c55cf340aeab30b334a3e70ed0a7a9099890e6c32cd0ef415672402323945cfad9907431930af08f3ca2f1d20ae868cd4d385f66e
data/lib/awful/ec2.rb CHANGED
@@ -53,7 +53,7 @@ module Awful
53
53
  if options[:long]
54
54
  print_table list.map { |i|
55
55
  [
56
- tag_name(i),
56
+ tag_name(i, ''),
57
57
  i.instance_id,
58
58
  i.instance_type,
59
59
  i.placement.availability_zone,
@@ -62,7 +62,7 @@ module Awful
62
62
  i.private_ip_address,
63
63
  i.public_ip_address
64
64
  ]
65
- }
65
+ }.sort_by(&:first)
66
66
  else
67
67
  puts list.map(&:instance_id)
68
68
  end
data/lib/awful/route53.rb CHANGED
@@ -60,6 +60,24 @@ module Awful
60
60
  end
61
61
  end
62
62
 
63
+ desc 'dump NAME', 'get a record set details'
64
+ method_option :max_items, aliases: '-m', type: :numeric, default: 1, desc: 'Max items to show, starting with given name+type'
65
+ method_option :type, aliases: '-t', type: :string, default: nil, desc: 'DNS type to begin the listing of records'
66
+ def dump(name)
67
+ zone = name.split('.').last(2).join('.')
68
+ params = {
69
+ hosted_zone_id: get_zone_by_name(zone),
70
+ start_record_name: name,
71
+ start_record_type: options[:type],
72
+ max_items: options[:max_items]
73
+ }
74
+ route53.list_resource_record_sets(params).resource_record_sets.tap do |records|
75
+ records.each do |record|
76
+ puts YAML.dump(stringify_keys(record.to_hash))
77
+ end
78
+ end
79
+ end
80
+
63
81
  end
64
82
 
65
83
  end
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.76'
2
+ VERSION = '0.0.77'
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.76
4
+ version: 0.0.77
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-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler