aws_pocketknife 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/aws_pocketknife.gemspec +2 -2
- data/lib/aws_pocketknife/asg.rb +1 -8
- data/lib/aws_pocketknife/cli/asg.rb +6 -2
- data/lib/aws_pocketknife/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dda4ef74540ff9ce2ba7034fb107a9b81be7c80
|
4
|
+
data.tar.gz: 7050ea57e0633da64d94750896f14ba80ed70dcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f932c6e0b748432107c96c66988188bb778b9a749d2dd44f1d5d291559884b8d51d84ef156d94f115909ad9418db3a9b8ba1211fe8a2ce2ed4614518e92df8e1
|
7
|
+
data.tar.gz: 3ef78984d4da15fb3a674377504554c9c3c93c405a7f97e3b299f8f4dbf61ffd2f5a43c127cc903c187eb287b7c82904db1d54e40f3da8f33d4440009a9b35af
|
data/README.md
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
# Aws Pocketknife
|
4
4
|
|
5
|
-
|
5
|
+
## Why?
|
6
|
+
|
7
|
+
Have you ever find yourself going through the aws cli documentation page over and over again just to remember the right syntax or argument(s) for that command that you wanna run? Do you feel that you are more productive from the command line? Are you tired of having to open private browser windows or even a different browser to work with multiple aws accounts?
|
8
|
+
|
9
|
+
## What?
|
10
|
+
|
11
|
+
Command line tools to make aws administration a little bit easier and faster than using the aws console. It also helps to script some AWS tasks such as cleaning up
|
6
12
|
old AMIs along its snapshots or cleaning up manual RDS snapshots or even creating a manual snapshot for a particular RDS.
|
7
13
|
|
8
14
|
These commands are also handy if you have multiple aws accounts to manage, since you can't have multiple tabs open for
|
data/aws_pocketknife.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Gustavo Soares Souza"]
|
10
10
|
spec.email = ["gustavo.soares@myob.com"]
|
11
11
|
|
12
|
-
spec.summary = "Command line tools to make aws administration a little bit easier and
|
13
|
-
spec.description = "
|
12
|
+
spec.summary = "Command line tools to make aws administration a little bit easier and faster than using the aws consol or aws cli."
|
13
|
+
spec.description = "Have you ever find yourself going through the aws cli documentation page over and over again just to remember the right syntax or argument(s) for that command that you wanna run? Do you feel that you are more productive from the command line? Are you tired of having to open private browser windows or even a different browser to work with multiple aws accounts? AWS Pocketknife is a command line tool to make aws administration a little bit easier and faster than using the aws console or aws cli. It also helps to script some AWS tasks such as cleaning up
|
14
14
|
old AMIs along its snapshots or cleaning up manual RDS snapshots or even creating a manual snapshot for a particular RDS.
|
15
15
|
|
16
16
|
These commands are also handy if you have multiple aws accounts to manage, since you can't have multiple tabs open for
|
data/lib/aws_pocketknife/asg.rb
CHANGED
@@ -9,15 +9,8 @@ module AwsPocketknife
|
|
9
9
|
include AwsPocketknife::Common::Utils
|
10
10
|
|
11
11
|
def describe_asg_by_name(name: "")
|
12
|
-
asgs = []
|
13
12
|
asg_list = name.split(";")
|
14
|
-
|
15
|
-
auto_scaling_group_names: asg_list,
|
16
|
-
})
|
17
|
-
resp.auto_scaling_groups.each do |asg|
|
18
|
-
asgs << asg
|
19
|
-
end
|
20
|
-
asgs
|
13
|
+
asg_client.describe_auto_scaling_groups({auto_scaling_group_names: asg_list, })
|
21
14
|
end
|
22
15
|
|
23
16
|
def list(max_records: 100)
|
@@ -13,8 +13,12 @@ module AwsPocketknife
|
|
13
13
|
|
14
14
|
desc "desc ASG_NAME", "describe autoscaling group name"
|
15
15
|
def desc(asg_name)
|
16
|
-
|
17
|
-
|
16
|
+
asg = AwsPocketknife::Asg.describe_asg_by_name(name: asg_name)
|
17
|
+
if asg.auto_scaling_groups.empty?
|
18
|
+
puts "ASG #{asg_name} not found"
|
19
|
+
else
|
20
|
+
AwsPocketknife::Asg.nice_print(object: asg.to_h)
|
21
|
+
end
|
18
22
|
end
|
19
23
|
|
20
24
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_pocketknife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gustavo Soares Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -193,7 +193,7 @@ dependencies:
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 1.24.2
|
195
195
|
description: |-
|
196
|
-
|
196
|
+
Have you ever find yourself going through the aws cli documentation page over and over again just to remember the right syntax or argument(s) for that command that you wanna run? Do you feel that you are more productive from the command line? Are you tired of having to open private browser windows or even a different browser to work with multiple aws accounts? AWS Pocketknife is a command line tool to make aws administration a little bit easier and faster than using the aws console or aws cli. It also helps to script some AWS tasks such as cleaning up
|
197
197
|
old AMIs along its snapshots or cleaning up manual RDS snapshots or even creating a manual snapshot for a particular RDS.
|
198
198
|
|
199
199
|
These commands are also handy if you have multiple aws accounts to manage, since you can't have multiple tabs open for
|
@@ -274,6 +274,6 @@ rubyforge_project:
|
|
274
274
|
rubygems_version: 2.4.8
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
|
-
summary: Command line tools to make aws administration a little bit easier and
|
278
|
-
than using the aws
|
277
|
+
summary: Command line tools to make aws administration a little bit easier and faster
|
278
|
+
than using the aws consol or aws cli.
|
279
279
|
test_files: []
|