lono-params 0.0.2 → 0.0.3

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: 7f546c66474a1f8c7a6426629cf19b6e1b540568
4
- data.tar.gz: 08d379c57ee6c8a1471cbf721bf2234b00b10479
3
+ metadata.gz: 2a5318c7d431c212dc1deb77a918fc3d3dcce2a5
4
+ data.tar.gz: 3bcb90dcdd5a5cce47000e9ab38544cee6876f4c
5
5
  SHA512:
6
- metadata.gz: c8ca4ae05842a8d1fdd2770a11ae351e2a9ebeeb076f2c10ac2b38b92661248c504c0d338dbccd8c5162faad495d5dddc092005bd445bcb096dbef65ac56425b
7
- data.tar.gz: 922b5405769d12c6476fa2a2dbc1143e9e06d4ccbe2a6e79710c6f7a3e082f806f8f38450a92f8eff5fa583614bcffce0c5a431978dbd650a4286686d934de50
6
+ metadata.gz: 307ac647c0ca743c1caed7c8c2d6d9b5dd934722e33b4cb1afb381e3938aaf39981f8f358dc7a51df31189615b90323ea141fce0d6794055d37d86ad231c6ad0
7
+ data.tar.gz: ef16cc69a1064537ff9ee2c9cc5356d821e8c2eae5b4af92fc8279da7d1b349ed4b806d09f6d7b5456668a8f4430c7ebf1f6679b00aa054ebfd704eb5383ee7e
@@ -29,6 +29,9 @@ module LonoParams
29
29
 
30
30
  # useful for when calling CloudFormation via the aws-sdk gem
31
31
  def params
32
+ # useful option for lono-cfn
33
+ return {} if @options[:allow_blank] && !File.exist?(@source_path)
34
+
32
35
  contents = IO.read(@source_path)
33
36
  convert_to_cfn_format(contents, :underscore)
34
37
  end
@@ -1,3 +1,3 @@
1
1
  module LonoParams
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono-params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen