tflat 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f50b27a6b20c4823c20efb284fb6c0ca6576ef93ccb91431c8b162417dd05e0
4
- data.tar.gz: e3410bea1c133c1be6df26e5008662957e04223a83147e17503796b84a747fb1
3
+ metadata.gz: 7eeff3124798111046d1d95a4c3ff5738205af0d27b85263125a669a3241ad90
4
+ data.tar.gz: f66f32f0930e12211a15aada5a54cf040912cfd38b8735b62c229d1164a689b6
5
5
  SHA512:
6
- metadata.gz: 8a5e5afbd879f2c6c45676b98390c58c49c0c5f9b1ba8e3a6c37d4ccc1fa0b2d3c504df5da254a1b259f6cbe696344833ba6485265e2140e0f8645658232034e
7
- data.tar.gz: 784070164340af73dca83a2e5ca3f73d435561390168e964e4ab2d407f93ffd0c1a64176461edb0e022ebe5d9905c872582d06f92029246e89fe96ce17b43486
6
+ metadata.gz: 94d3a0e2aba2a54f56e358737695c0361083e611686d9f69eaf1f214db78bc82f53f3b2d0f98c8438cff500bf9e9a9c90409d11700a857db6e2f8c1fbdffd8c2
7
+ data.tar.gz: dbb516a07b5aa37c57874a6837a68dbdae879a392efcb6341ba02eaf6e4d92527064cd2490de82d3d22423a908d4a5a51eed521943ca395da4260762118c2479
@@ -1,8 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.4 - Nov 17 2018
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.
@@ -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}"
@@ -1,3 +1,3 @@
1
1
  module Tflat
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tflat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda