cfn-toml 1.0.8 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfn_toml/version.rb +1 -1
- data/lib/cfn_toml.rb +3 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46739e6edd56b42ca3c92a8cdf768bf9469acac67d0ea61473dcaa48baddfb0a
|
4
|
+
data.tar.gz: aa7591f7169127e49da07f45fa0f653b1d9e7d4d61b0202f465d3857c18e41e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4bc3881195a9ca3ceb54f28c0e66499c2a865942075a7f6635fb54de2de2639ef19234ad1da95d23d5bb5d815ab7863646a2614391ec1c25330512e48e7d671
|
7
|
+
data.tar.gz: ad4538766ee68e4e018a747e627553f887b419da1de98d07001d0a5dfba3b7e48518c59ddeab7353c113fb74125f0448ea96cf68da7b768e5a12eeeb8dba0c0c
|
data/lib/cfn_toml/version.rb
CHANGED
data/lib/cfn_toml.rb
CHANGED
@@ -9,7 +9,7 @@ module CfnToml
|
|
9
9
|
stackname ||= 'stackname'
|
10
10
|
|
11
11
|
toml_path = File.dirname toml_filepath
|
12
|
-
FileUtils.mkpath(toml_path) unless File.
|
12
|
+
FileUtils.mkpath(toml_path) unless File.exist?(toml_path)
|
13
13
|
|
14
14
|
File.open(toml_filepath, "w") do |f|
|
15
15
|
f.write "[deploy]\n"
|
@@ -22,7 +22,7 @@ module CfnToml
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.init_parameters f, cfn_filepath
|
25
|
-
return unless File.
|
25
|
+
return unless File.exist?(cfn_filepath)
|
26
26
|
contents = File.open(cfn_filepath).read
|
27
27
|
hash = YAML.load(contents)
|
28
28
|
return unless hash.key?('Parameters')
|
@@ -50,6 +50,7 @@ module CfnToml
|
|
50
50
|
|
51
51
|
def self.params toml_filepath, params_version, parameters_name='parameters'
|
52
52
|
data = TomlRB.load_file(toml_filepath)
|
53
|
+
parameters_name ||= 'parameters'
|
53
54
|
if params_version == 'v1'
|
54
55
|
data[parameters_name].map do |k,v|
|
55
56
|
"ParameterKey=#{k},ParameterValue=#{v}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-toml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Brown
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|
@@ -54,7 +54,7 @@ homepage: https://github.com/teacherseat/cfn-toml
|
|
54
54
|
licenses:
|
55
55
|
- MIT
|
56
56
|
metadata: {}
|
57
|
-
post_install_message:
|
57
|
+
post_install_message:
|
58
58
|
rdoc_options: []
|
59
59
|
require_paths:
|
60
60
|
- lib
|
@@ -69,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
73
|
-
signing_key:
|
72
|
+
rubygems_version: 3.4.6
|
73
|
+
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Configuration file parsing for CFN Bash scripting
|
76
76
|
test_files: []
|