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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13a0bb5a6fa693cdebfe50e081f27de82166dce8232c8cb0e827f809b1df33bd
4
- data.tar.gz: bd980cea0d66962cbd1bf297a80767fb16c10915beb72b2ad84896cbf832aabf
3
+ metadata.gz: 4d56a7aaa80756c4e557d3270509a5f4f3dbca615ddc6cc21aff858a9422fb44
4
+ data.tar.gz: 854d611bfd615ab67c1b70d4f14c19ff2041b4ff3cf4d981713c52be26ada165
5
5
  SHA512:
6
- metadata.gz: 4bf802d29f8bb188cc9b338f9cf37ab24f3db6922cfd48d8f35780525e41ad2d47dccadc03decf1f9e122133a2cf894e3fb0ad5471223c9850b039d40f7a1436
7
- data.tar.gz: 76fb7e467d0f1c87cad5f351bccdbd5637588e1a51fc9819e12b84997160106f93154df0ef6fbbe11d4d1a23aaf83655ace00930e7ad6f1ba8f7b699db6ae618
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.exists?(File.expand_path('template.yaml'))
68
+ if File.exist?(File.expand_path('template.yaml'))
69
69
  options[:cfn_filepath] = "template.yaml"
70
- elsif File.exists?(File.expand_path('template.yml'))
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"
@@ -1,3 +1,3 @@
1
1
  module CfnToml
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.11'
3
3
  end
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.exists?(toml_path)
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.exists?(cfn_filepath)
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.9
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: 2022-07-17 00:00:00.000000000 Z
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.1.4
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: []