elastic-beanstalk 1.1.4 → 1.1.5

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: 78b136f50127269176467ba6b9acc6f6e66ecd68
4
- data.tar.gz: 5f2ee1c26fadeccb7e900ba5f3113382532e05a4
3
+ metadata.gz: 26edbece5402124ca692290f35894e67ef905b1d
4
+ data.tar.gz: f435fb3aefd94c76faeb70fd4dd490fb89058bcb
5
5
  SHA512:
6
- metadata.gz: 83d030e7f06d67f9fea40967532393e09782d759fbce5fbf30b1edddae842fb8200a2383f2739032f421921cf5c9bff44767ba1c4872c7c17c05860f44b47ace
7
- data.tar.gz: 02409b252a1f8dd08f103f189144744ef67376cb738acd75ac389f3e263e3a19a3f08c33e3c3ee043fe155b7d3a37a1f21e9ea768bedf3cc9ebbcdb0486787e8
6
+ metadata.gz: 604100ad798c2963fdc17c207b524253343ad5c99617a7bf4cbca2f463bf8e2d237619aa8b2729c5443f5b249947d2449ef1e95465824fd8d096780d61e8cd33
7
+ data.tar.gz: e45f192f94b28d7ca6b4cffbe3bb3fd7f0620894b56ec764e173ba73f9d3d39eb2f80b0a6b36b0a1b4b24d2e3ed379943d404ff0368a167ca5116910d8e40a9c
@@ -15,13 +15,14 @@ namespace :eb do
15
15
  desc 'List RDS snapshots'
16
16
  task :snapshots => [:config] do |t, args|
17
17
  # absolutely do not run this without specifying columns, otherwise it will call all defined methods including :delete
18
- print_snapshots(rds.snapshots.to_a)
18
+ print_snapshots(rds.describe_db_snapshots.db_snapshots)
19
19
  end
20
20
 
21
21
  desc 'List RDS instances'
22
22
  task :instances => [:config] do |t, args|
23
23
  # absolutely do not run this without specifying columns, otherwise it will call all defined methods including :delete
24
- print_instances(rds.instances.to_a)
24
+
25
+ print_instances(rds.describe_db_instances.db_instances)
25
26
  end
26
27
 
27
28
  desc 'Creates an RDS snapshot'
@@ -78,43 +79,42 @@ namespace :eb do
78
79
  end
79
80
 
80
81
  def rds
81
- @rds ||= AWS::RDS.new
82
+ @rds ||= Aws::RDS::Client.new(Aws.config)
82
83
  @rds
83
84
  end
84
85
 
85
86
  def print_snapshots(snapshots)
86
87
  tp snapshots,
87
- {snapshot_id: {display_method: :id}},
88
+ {snapshot_id: {display_method: :db_snapshot_identifier}},
88
89
  :status,
89
90
  {gb: {display_method: :allocated_storage}},
90
91
  {type: {display_method: :snapshot_type}},
91
92
  {engine: lambda { |i| "#{i.engine} #{i.engine_version}" }},
92
- {zone: {display_method: :availability_zone_name}},
93
- :created_at,
93
+ {zone: {display_method: :availability_zone}},
94
+ :snapshot_create_time,
94
95
  :instance_create_time
95
- #:master_username,
96
96
  end
97
97
 
98
98
  def print_instances(instances)
99
99
  tp instances,
100
- {instance_id: {display_method: :id}},
100
+ {instance_id: {display_method: :db_instance_identifier}},
101
101
  {name: {display_method: :db_name}},
102
- :status,
102
+ {status: {display_method: :db_instance_status}},
103
103
  {gb: {display_method: :allocated_storage}},
104
104
  :iops,
105
105
  {class: {display_method: :db_instance_class}},
106
106
  {engine: lambda { |i| "#{i.engine} #{i.engine_version}" }},
107
- {zone: {display_method: :availability_zone_name}},
107
+ {zone: {display_method: :availability_zone}},
108
108
  :multi_az,
109
- {:endpoint_address => {:width => 120}},
110
- {port: {display_method: :endpoint_port}},
109
+ {endpoint: {display_method: lambda { |i| "#{i.endpoint.address}"}, :width => 120}},
110
+ {port: {display_method: lambda { |i| "#{i.endpoint.port}"}}},
111
111
  #:latest_restorable_time,
112
112
  #:auto_minor_version_upgrade,
113
113
  #:read_replica_db_instance_identifiers,
114
114
  #:read_replica_source_db_instance_identifier,
115
115
  #:backup_retention_period,
116
116
  #:master_username,
117
- :created_at
117
+ {created_at: {display_method: :instance_create_time}}
118
118
  end
119
119
  end
120
120
 
@@ -1,5 +1,5 @@
1
1
  module Elastic
2
2
  module Beanstalk
3
- VERSION = '1.1.4'
3
+ VERSION = '1.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-beanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross