aws-ec2-list 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/aws-ec2-list +0 -1
- data/lib/aws_ec2_list/runner.rb +4 -9
- data/lib/aws_ec2_list/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 288213b6d0677699be342357a0505356c85a34e3
|
4
|
+
data.tar.gz: fe59d92cdb81cc58ea5af7fd6799b018b7bf0d24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f62b85e549bb732d470343c3831e03252eae6252b911a26ead3e2514b8ec9c4b44e3f00920d0d602bf696a35a9ded16b30f9b6d693016e9ffc70d202f871671e
|
7
|
+
data.tar.gz: 30e39213e3f654a80cc96b86ad6bdabf561eb51a2f56bc674df874afd76f1e5ba7e5b7c3bfc95f0a1a53240f5a4d3b6c31d9ddc542b365b215d791fb29f30212
|
data/exe/aws-ec2-list
CHANGED
data/lib/aws_ec2_list/runner.rb
CHANGED
@@ -1,16 +1,11 @@
|
|
1
1
|
require_relative 'instance'
|
2
2
|
|
3
3
|
class AwsEc2List::Runner
|
4
|
-
attr_reader :ec2, :
|
4
|
+
attr_reader :ec2, :stdout
|
5
5
|
|
6
|
-
def initialize(ec2: Aws::EC2::Client
|
7
|
-
|
8
|
-
stdout: $stdout,
|
9
|
-
env: ENV)
|
10
|
-
@ec2 = ec2
|
11
|
-
@credentials_path = credentials_path
|
6
|
+
def initialize(ec2: Aws::EC2::Client, region: 'us-east-1', stdout: $stdout)
|
7
|
+
@ec2 = ec2.new(region: region)
|
12
8
|
@stdout = stdout
|
13
|
-
@env = env
|
14
9
|
end
|
15
10
|
|
16
11
|
def call
|
@@ -19,7 +14,7 @@ class AwsEc2List::Runner
|
|
19
14
|
[d.project, d.stack_name, d.public_dns_name, d.launch_time, d.app_version, d.state]
|
20
15
|
end
|
21
16
|
data = data.insert(0, data_header)
|
22
|
-
puts Tabularize.it(data, :align => :left).map { |row| row.join ' | ' }
|
17
|
+
stdout.puts Tabularize.it(data, :align => :left).map { |row| row.join ' | ' }
|
23
18
|
end
|
24
19
|
|
25
20
|
private
|
data/lib/aws_ec2_list/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-ec2-list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pauloancheta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|