tflat 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tflat.rb +2 -2
- data/lib/tflat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 477d11199b705ebb767ae9a5ee5ee47198916a19e36c0de49a48e33c870ad2db
|
4
|
+
data.tar.gz: 4f5246942104168f4e6349273ad5234d0cf8b7669bbd9899da921b1429fbf27d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc3581e57180a8e52ab0305fb8c7fc8794b18bb5deace8e10756b61bc7b0242ae8b7aa410bc6b7f8e4e9d667918563fb9f5b839d6d2312f334a87c640a5796cf
|
7
|
+
data.tar.gz: 1a80300c23cfe728bf11717a4e7c22b42e61503628e44bbe76f44607eb9db5f72ef2684aa1893bb9fbd4154277a0ee9541b1256c644b2baae9102a1ac7c85968
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.9 - Dec 14 2018
|
4
|
+
- Sort files by name before rendering ERB. That allows you to add files like `_globals/variables.tf` with some custom ruby code that will run before parsing anything else.
|
5
|
+
- Fix bug with exception handling
|
6
|
+
|
3
7
|
## 0.1.8 - Dec 5 2018
|
4
8
|
- Set environment variable TFLAT_WORKSPACE to have the `.tflat` folder have a suffix. Useful for running same code on different states, for example.
|
5
9
|
|
data/lib/tflat.rb
CHANGED
@@ -71,7 +71,7 @@ module Tflat
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def parse_erb
|
74
|
-
Dir.glob("#{@tflat_folder}/*").each do |entry|
|
74
|
+
Dir.glob("#{@tflat_folder}/*").sort.each do |entry|
|
75
75
|
next unless File.file?(entry)
|
76
76
|
next if File.binary?(entry)
|
77
77
|
puts "- #{@tag} -> #{entry}"
|
@@ -79,7 +79,7 @@ module Tflat
|
|
79
79
|
rendered = render(entry)
|
80
80
|
rescue Exception => e
|
81
81
|
puts "- #{@tag} ERROR: Could not parse ERB on file #{entry}"
|
82
|
-
puts e.
|
82
|
+
puts e.message
|
83
83
|
exit 1
|
84
84
|
end
|
85
85
|
File.write(entry, rendered)
|
data/lib/tflat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tflat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Arruda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ptools
|