awsutils 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/awsutils/ec2latestimage.rb +6 -1
- data/lib/awsutils/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: 2262e6b9cef6b2bef93be826382e6fa65adc757b
|
4
|
+
data.tar.gz: e1b9b6749c152bb10a1236058eb628fbcc37e371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae21d554f550a4e8a6bb71b6a54898b5035317532308dccbcf3aea0fee0d0e67600617f3898746462a9343b552311b4c988993f1d52aaadd0d6278d5e726be21
|
7
|
+
data.tar.gz: 4999def64d2252d34bf876168a788450cf92483f376d9383c11310757378dc01d23da4c25cc8c657fddb09d4aacbbb65e24c44cc3e55c569ffc889f91bf12f04
|
data/.gitignore
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'net/http'
|
3
|
+
require 'trollop'
|
3
4
|
# require 'aws-sdk' # see the comment on `image_details` below
|
4
5
|
|
5
6
|
module AwsUtils
|
@@ -13,7 +14,7 @@ module AwsUtils
|
|
13
14
|
)
|
14
15
|
parse_releases_array(resp['aaData']).select do |rel|
|
15
16
|
rel[:region] == 'us-east-1' &&
|
16
|
-
rel[:distro_version] ==
|
17
|
+
rel[:distro_version] == "#{opts[:release]}" &&
|
17
18
|
rel[:arch] == 'amd64'
|
18
19
|
end
|
19
20
|
end
|
@@ -80,5 +81,9 @@ module AwsUtils
|
|
80
81
|
def connection
|
81
82
|
@connection ||= Aws::EC2::Client.new
|
82
83
|
end
|
84
|
+
|
85
|
+
def opts
|
86
|
+
@opts ||= Trollop.options { opt :release, 'Ubuntu release', short: 'r', default: '14.04 LTS' }
|
87
|
+
end
|
83
88
|
end
|
84
89
|
end
|
data/lib/awsutils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awsutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Herot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|