cfn-toml 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cfn-toml +2 -2
- data/lib/cfn_toml/version.rb +1 -1
- data/lib/cfn_toml.rb +2 -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: 4d56a7aaa80756c4e557d3270509a5f4f3dbca615ddc6cc21aff858a9422fb44
|
4
|
+
data.tar.gz: 854d611bfd615ab67c1b70d4f14c19ff2041b4ff3cf4d981713c52be26ada165
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9eafd081970cfc43501049e27e4b27360be88c320c5a8f746e8f33cf3a2d92c529ee6e4fbd3aeae8f82ac18da9a0e92756b81d1652ee2e4431f69364a51d5af
|
7
|
+
data.tar.gz: 5a77ae80df32a9ac6e412f745612db36e9238b1a1481aa481becf8eb2287ab184a526266300e25b62f54ed5eefc9cb74c5c806be84ead82ccff20400c932eb8c
|
data/bin/cfn-toml
CHANGED
@@ -65,9 +65,9 @@ begin
|
|
65
65
|
options[:profile] ||= 'default'
|
66
66
|
|
67
67
|
if options[:cfn_filepath].nil?
|
68
|
-
if File.
|
68
|
+
if File.exist?(File.expand_path('template.yaml'))
|
69
69
|
options[:cfn_filepath] = "template.yaml"
|
70
|
-
elsif File.
|
70
|
+
elsif File.exist?(File.expand_path('template.yml'))
|
71
71
|
options[:cfn_filepath] = "template.yml"
|
72
72
|
end
|
73
73
|
options[:cfn_filepath] ||= "template.yaml"
|
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')
|
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.11
|
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: []
|