ami_spec 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 791efe6c0784b76689e581dd3d4172d9069471c81e1f06cf6a3671b2edb2e5c3
4
- data.tar.gz: bb3c40ff9295d4dafc97cbc7ec6e54b5514d29a13cd39a17647b1170ee6d7839
3
+ metadata.gz: c50eed3429c33081ff25fc9d4695b10c1f3696c839a53f2da7ebaca9457333f8
4
+ data.tar.gz: 20a87adad2bfa8a80ae3f6c4794d08515612a4da46590a61656ac3c02608a1a0
5
5
  SHA512:
6
- metadata.gz: c82b27a4a85ac7fbdc3bac38bf4736d8675167349ffb41bf97deaa9358ae54fa2dea58e286c5ead916058266b3cddb5aca6c0fa0e24c1f4b0e1a0d4e2052ac00
7
- data.tar.gz: 857dfa433808063a4a64c8dba5cc2e493f3f064e3a94b69565f28eb49a7a4cedd5950f83e09ad5ec784174c291d0f0ddc016fcd1b9ed07b4135da10a67fb3395
6
+ metadata.gz: d89d294411139f9645536b67aeab0e47eb744a9aad698c9e3807ac29b5bbf0589c6dbbfa4dc0250a938801878dae8ce673cb765d11c0b932d6e10d94f062ae80
7
+ data.tar.gz: 1e0a0a653a5f792e7f126a891f0b6aa73a2aadcf2d3ecda8059cb5df0136337cf719e359cefd79d47227ee0dcd16c37f63adbced9a00b20441f6613b7dfd58e3
@@ -1,3 +1,3 @@
1
1
  module AmiSpec
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
data/lib/ami_spec.rb CHANGED
@@ -104,7 +104,7 @@ module AmiSpec
104
104
  opt :debug, "Don't terminate instances on exit"
105
105
  opt :buildkite, "Output section separators for buildkite"
106
106
  opt :wait_for_rc, "Wait for oldschool SystemV scripts to run before conducting tests. Currently only supports Ubuntu with upstart"
107
- opt :user_data_file, "File path for aws ec2 user data", type: :string
107
+ opt :user_data_file, "File path for aws ec2 user data", type: :string, default: nil
108
108
  opt :iam_instance_profile_arn, "IAM instance profile to use", type: :string
109
109
  end
110
110
 
@@ -125,7 +125,7 @@ module AmiSpec
125
125
  fail "Key file #{options[:key_file]} not found"
126
126
  end
127
127
 
128
- unless options[:user_data_file] and File.exist? options[:user_data_file]
128
+ if options[:user_data_file] and !File.exist? options[:user_data_file]
129
129
  fail "User Data file #{options[:user_data_file]} not found"
130
130
  end
131
131
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ami_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Robinson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-06 00:00:00.000000000 Z
12
+ date: 2018-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk