terraspace 2.2.1 → 2.2.2
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/terraspace/app.rb +1 -0
- data/lib/terraspace/cli/help/import.md +2 -2
- data/lib/terraspace/compiler/erb/rewrite.rb +4 -1
- data/lib/terraspace/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: 0c7a68a82f374785998967cf8af6d56f78130d7e03e8b0d7e64e85a9483e61cd
|
|
4
|
+
data.tar.gz: 2883619576b4a57c0e049edbc2cdae9d44b6c23926e3fe85084170bed5afb6c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbbd8c9339438902bc05b507292497c7714ccf9264a0155ab4fcd51c9e7d89d8ea0fc0a94f60228273fb9830f4458269eefa259a014d14a5754692a3d7747a2a
|
|
7
|
+
data.tar.gz: e62b1db8f363a94bbea6ed69ec1a6323171ab4442ff9059f0141fc2017837167659f741b2a7bf7e88f6d643320ac2040ff4e35e6564e0725861f030cd48809d4
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [2.2.2] - 2022-09-14
|
|
7
|
+
- [#268](https://github.com/boltops-tools/terraspace/pull/268) custom config.build.dependency_words ability
|
|
8
|
+
|
|
6
9
|
## [2.2.1] - 2022-09-08
|
|
7
10
|
- [#265](https://github.com/boltops-tools/terraspace/pull/265) import command
|
|
8
11
|
|
data/lib/terraspace/app.rb
CHANGED
|
@@ -42,6 +42,7 @@ module Terraspace
|
|
|
42
42
|
config.build.clean_cache = nil # defaults to true
|
|
43
43
|
config.build.default_pass_files = ["/files/"]
|
|
44
44
|
config.build.pass_files = []
|
|
45
|
+
config.build.dependency_words = []
|
|
45
46
|
|
|
46
47
|
config.bundle = ActiveSupport::OrderedOptions.new
|
|
47
48
|
config.bundle.logger = ts_logger
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
## Examples
|
|
2
2
|
|
|
3
|
-
terraspace import aws_instance.this i-088a0a47e2e852cc8
|
|
4
|
-
terraspace import
|
|
3
|
+
terraspace import ec2 aws_instance.this i-088a0a47e2e852cc8
|
|
4
|
+
terraspace import vpc module.vpc.aws_vpc.this vpc-000782e4951a734c7
|
|
5
5
|
terraspace import vpc module.vpc.aws_vpc.this vpc-000782e4951a734c7
|
|
6
6
|
|
|
7
7
|
A general workflow is to use terraspace plan, inspect what resources, are missing and and import resources based on that. The `state list` command is also useful.
|
|
@@ -26,7 +26,10 @@ module Terraspace::Compiler::Erb
|
|
|
26
26
|
def new_line(line)
|
|
27
27
|
md = line.match(/.*(<% |<%=)/) || line.match(/.*<%$/)
|
|
28
28
|
if md
|
|
29
|
-
words = %w[output depends_on]
|
|
29
|
+
words = %w[output depends_on]
|
|
30
|
+
dependency_words = [Terraspace.config.build.dependency_words].flatten
|
|
31
|
+
words += dependency_words # custom user words to evaluated in first pass also
|
|
32
|
+
return line if words.include?('*') # passthrough for special case '*'
|
|
30
33
|
# IE: <%= output or <% depends_on
|
|
31
34
|
regexp = Regexp.new(".*<%.*#{words.join('|')}.*")
|
|
32
35
|
if line.match(regexp)
|
data/lib/terraspace/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: terraspace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-09-
|
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|