cloudformation_wrapper 0.2.10 → 0.2.11

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: edfff99608dfcf24199160460ea3b1f7f679a48d98568a3cc44ad39929e7aeaa
4
- data.tar.gz: 0475b0341d846e673bd2393087967ea3bcf186ab8f29e3a6a0a0f0494c074d83
3
+ metadata.gz: 364dd3b46dd26651d355c996fd94f9966e229895bbb579bd8c0f486546f13e56
4
+ data.tar.gz: ef9f5ea35e85831522460a043cfb7c27b76fd10c7387c874050f1add030e69fa
5
5
  SHA512:
6
- metadata.gz: 7a2924171152b609a4edbe64a7f66d2964ffdc6529df14f65f2af270adadd23cb590312ef74a79b72d26501a3da0e50c55d2dc92a7c831df76ea0765e186ba08
7
- data.tar.gz: 57c2e0915883611b6fa0443c986a41c771d7bb9e371248549acc419bbdd5292b62ba7f76e2fe7b70155f72b33c976a7d3a40e9153dd0f659f573445edba01ff6
6
+ metadata.gz: 9bacd698ac701966ad5fc31a6593652e846e519ab639c4a7cf5b13e996cf2a0efede3202bf1b9e836d34a37923cd34e86b0aafe39cc0e82322d78c5aa3a2018f
7
+ data.tar.gz: 84291fb826e32e3002fb014f9fe649438164db14e03c78aae5cef5271a9baac101fcd01d8563c1016449226fe4ae26129d0f745cfe56bea16799fd58c3a0b755
@@ -19,11 +19,7 @@ module CloudFormationWrapper
19
19
 
20
20
  verified_options = verify_options(options)
21
21
 
22
- cf_client = if verified_options[:client].nil?
23
- Aws::CloudFormation::Client.new(credentials: credentials, region: region)
24
- else
25
- verified_options[:client]
26
- end
22
+ cf_client = verified_options[:client] || Aws::CloudFormation::Client.new(credentials: credentials, region: region)
27
23
 
28
24
  ensure_template_file_exists(verified_options[:template_path], cf_client)
29
25
 
@@ -51,7 +47,7 @@ module CloudFormationWrapper
51
47
  raise ArgumentError, 'parameters must be provided (Hash)'
52
48
  end
53
49
 
54
- return if options_with_defaults[:name] && (options_with_defaults[:name].is_a? String)
50
+ return options_with_defaults if options_with_defaults[:name] && (options_with_defaults[:name].is_a? String)
55
51
  raise ArgumentError, 'name must be provided (String)'
56
52
  end
57
53
 
@@ -1,4 +1,4 @@
1
1
  module CloudFormationWrapper
2
2
  # @!visibility private
3
- VERSION = '0.2.10'.freeze
3
+ VERSION = '0.2.11'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ted Armstrong