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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95f34da34fad24fe442ee18a0b59ba3b6785e6b8
4
- data.tar.gz: f809b1fdee1e38c522ecfd888da1497e20c01d54
3
+ metadata.gz: 2262e6b9cef6b2bef93be826382e6fa65adc757b
4
+ data.tar.gz: e1b9b6749c152bb10a1236058eb628fbcc37e371
5
5
  SHA512:
6
- metadata.gz: 0653f177362210ad4875cc64bb1722bac7f0095041c8e2c219779e6873141eff533bd45af70d0fff93f7d9b405dbdbaf02c7862f86efd346bd6c1e10f3f333ec
7
- data.tar.gz: ce754a5256133a11d5a3ca311af86ee4a2c2990af2a88272b06f00ce136b7824b981e67554c4b4d374922795b7bd31c631246fe644c928db03fbe9a92b5e51a3
6
+ metadata.gz: ae21d554f550a4e8a6bb71b6a54898b5035317532308dccbcf3aea0fee0d0e67600617f3898746462a9343b552311b4c988993f1d52aaadd0d6278d5e726be21
7
+ data.tar.gz: 4999def64d2252d34bf876168a788450cf92483f376d9383c11310757378dc01d23da4c25cc8c657fddb09d4aacbbb65e24c44cc3e55c569ffc889f91bf12f04
data/.gitignore CHANGED
@@ -15,4 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
- .DS_Store
18
+ .DS_Store
19
+ LATEST_CHANGELOG.md
@@ -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] == '14.04 LTS' &&
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
@@ -1,3 +1,3 @@
1
1
  module AwsUtils
2
- VERSION = '2.1.6'
2
+ VERSION = '2.1.7'
3
3
  end
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.6
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: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler