tflat 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +19 -0
- data/lib/tflat.rb +1 -0
- data/lib/tflat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eeff3124798111046d1d95a4c3ff5738205af0d27b85263125a669a3241ad90
|
4
|
+
data.tar.gz: f66f32f0930e12211a15aada5a54cf040912cfd38b8735b62c229d1164a689b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94d3a0e2aba2a54f56e358737695c0361083e611686d9f69eaf1f214db78bc82f53f3b2d0f98c8438cff500bf9e9a9c90409d11700a857db6e2f8c1fbdffd8c2
|
7
|
+
data.tar.gz: dbb516a07b5aa37c57874a6837a68dbdae879a392efcb6341ba02eaf6e4d92527064cd2490de82d3d22423a908d4a5a51eed521943ca395da4260762118c2479
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## 0.1.
|
3
|
+
## 0.1.6 - Nov 17 2018
|
4
|
+
- Folders or files with the character '#' on their names will be ignored. You can use that to comment several files at once by commenting their folder.
|
5
|
+
|
6
|
+
## 0.1.5 - Nov 17 2018
|
4
7
|
- More verbose output to make it easier to catch ERB errors.
|
5
8
|
|
9
|
+
## 0.1.4 - Skipped
|
10
|
+
|
6
11
|
## 0.1.3 - Nov 12 2018
|
7
12
|
- Added helper method `file_sha256(file)` to return the SHA256 of `file`'s content. This is useful for `null_resource` triggers.
|
8
13
|
- Fixed bug when file gets loaded before ERB parsed when using the `file` helper
|
data/README.md
CHANGED
@@ -146,6 +146,25 @@ services:
|
|
146
146
|
|
147
147
|
That way you don't have to deal with Terraform templates!
|
148
148
|
|
149
|
+
## Ignoring certain folders
|
150
|
+
If you want TFlat to ignore a file or folder, just add a '#' to its name. This is useful when you want to destroy a chunk of infrastructure really quick, or when you don't want to apply something that you have been working on yet.
|
151
|
+
|
152
|
+
For example:
|
153
|
+
|
154
|
+
```
|
155
|
+
|_ config
|
156
|
+
|_ providers.tf
|
157
|
+
|_ state.tf
|
158
|
+
|_ #ec2 <--- This folder and its contents will be ignored by TFlat
|
159
|
+
|_ files
|
160
|
+
|_ user_data.sh
|
161
|
+
|_ instances.tf
|
162
|
+
|_ keypairs.tf
|
163
|
+
|_ #resources.tf <---- This file will be ignored by TFlat
|
164
|
+
|_ outputs.tf
|
165
|
+
|_ variables.tf
|
166
|
+
```
|
167
|
+
|
149
168
|
## Contributing
|
150
169
|
|
151
170
|
Bug reports and pull requests are welcome on GitHub at https://github.com/parruda/tflat. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/lib/tflat.rb
CHANGED
@@ -45,6 +45,7 @@ module Tflat
|
|
45
45
|
|
46
46
|
def flatten_directories
|
47
47
|
all_files.each do |entry|
|
48
|
+
next if entry =~ /#/
|
48
49
|
new_name = entry.sub(/^#{directory}\//,'').gsub('/', '#')
|
49
50
|
if new_name =~ /^#/ # Skip files/directories that start with a hash sign
|
50
51
|
puts "- [tflat] Skipping: #{entry}"
|
data/lib/tflat/version.rb
CHANGED