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 +4 -4
- data/lib/elastic/beanstalk/tasks/eb.rake +13 -13
- data/lib/elastic/beanstalk/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: 26edbece5402124ca692290f35894e67ef905b1d
|
4
|
+
data.tar.gz: f435fb3aefd94c76faeb70fd4dd490fb89058bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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 ||=
|
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: :
|
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: :
|
93
|
-
:
|
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: :
|
100
|
+
{instance_id: {display_method: :db_instance_identifier}},
|
101
101
|
{name: {display_method: :db_name}},
|
102
|
-
:
|
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: :
|
107
|
+
{zone: {display_method: :availability_zone}},
|
108
108
|
:multi_az,
|
109
|
-
{:
|
110
|
-
{port: {display_method:
|
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
|
-
:
|
117
|
+
{created_at: {display_method: :instance_create_time}}
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|