terraspace 2.1.0 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -0
- data/lib/terraspace/app.rb +3 -3
- data/lib/terraspace/cli/down.rb +1 -0
- data/lib/terraspace/mod.rb +21 -0
- 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: 821596efa82fca834084cd1ff1128f2d19e12fcf6b29143eac95c0b160d0724d
|
4
|
+
data.tar.gz: f423fb9b8958619a342783e5bbcd07f61e39301d6faa8b7af7c1c53d59fcccc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec9d3e94b3b3e2ab3eea0c14392729eef461cc2a2c451365a158aaf2f6fe7e619b961dc9ccee3f6a18ed329a6eba199d33164c1857df8d469b4fe0f7b034193
|
7
|
+
data.tar.gz: 3608ca4855cf1a30feb7aa2e2287c97a2f80fbcd5c74e8339076180f34ae54c93eefc13dc57ab6cc74829f9d46b3389ef534659e6804cf98c3d2d21021a61470
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@
|
|
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.1.3] - 2022-07-13
|
7
|
+
- [#251](https://github.com/boltops-tools/terraspace/pull/251) deprecation warning for `:CACHE_ROOT` in `config.build.cache_dir`
|
8
|
+
|
9
|
+
## [2.1.2] - 2022-07-13
|
10
|
+
- [#249](https://github.com/boltops-tools/terraspace/pull/249) fix cost.enabled setting when nil
|
11
|
+
|
12
|
+
## [2.1.1] - 2022-07-12
|
13
|
+
- [#248](https://github.com/boltops-tools/terraspace/pull/248) fix destroy success return
|
14
|
+
|
6
15
|
## [2.1.0] - 2022-07-11
|
7
16
|
- [#247](https://github.com/boltops-tools/terraspace/pull/247) cost estimates and real-time stream logging
|
8
17
|
- Cloud Cost Estimation support
|
data/README.md
CHANGED
@@ -118,6 +118,7 @@ To install modules:
|
|
118
118
|
* [Configurable CLI](https://terraspace.cloud/docs/config/args/): Configurable [CLI Hooks](https://terraspace.cloud/docs/config/hooks/) and [CLI Args](https://terraspace.cloud/docs/config/args/) allow you to adjust the underlying terraform command.
|
119
119
|
* [Testing](https://terraspace.cloud/docs/testing/): A testing framework that allows you to create test harnesses, deploy real-resources, and have higher confidence that your code works.
|
120
120
|
* [Terraform Cloud and Terraform Enterprise Support](https://terraspace.cloud/docs/cloud/): TFC and TFE are both supported. Terraspace adds additional conveniences to make working with Terraform Cloud Workspaces easier.
|
121
|
+
* [Terraspace Cloud Support](https://terraspace.cloud/docs/cloud/): Terraspace Cloud adds additional features and conveniences like a Dashboard, History, Team Management, Permissions, Real-time Logging, and Cost Estimates. It's specifically designed for Terraspace. You might also be interested in this blog post: [Terraspace Cloud Intro](https://blog.boltops.com/2022/06/10/terraspace-cloud/)
|
121
122
|
|
122
123
|
## Comparison
|
123
124
|
|
data/lib/terraspace/app.rb
CHANGED
@@ -52,7 +52,7 @@ module Terraspace
|
|
52
52
|
config.cloud.record = "changes" # IE: changes or all
|
53
53
|
config.cloud.stack = ":APP-:ROLE-:MOD_NAME-:ENV-:EXTRA-:REGION"
|
54
54
|
config.cloud.cost = ActiveSupport::OrderedOptions.new
|
55
|
-
config.cloud.cost.enabled =
|
55
|
+
config.cloud.cost.enabled = cast_boolean(ENV['TS_COST'])
|
56
56
|
config.cloud.vcs = ActiveSupport::OrderedOptions.new
|
57
57
|
config.cloud.vcs.name = nil # github, gitlab, bitbucket. Else default to registered terraspace_vcs_* plugin
|
58
58
|
|
@@ -102,8 +102,8 @@ module Terraspace
|
|
102
102
|
# https://stackoverflow.com/questions/36228873/ruby-how-to-convert-a-string-to-boolean
|
103
103
|
# https://github.com/rails/rails/blob/5-1-stable/activemodel/lib/active_model/type/boolean.rb
|
104
104
|
# so dont have to add activemodel as a dependency just for this method
|
105
|
-
FALSE_VALUES = [false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"].to_set
|
106
|
-
def
|
105
|
+
FALSE_VALUES = [nil, false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"].to_set
|
106
|
+
def cast_boolean(value)
|
107
107
|
if value == ""
|
108
108
|
nil
|
109
109
|
else
|
data/lib/terraspace/cli/down.rb
CHANGED
data/lib/terraspace/mod.rb
CHANGED
@@ -128,6 +128,27 @@ module Terraspace
|
|
128
128
|
raise "ERROR: config.build.cache_dir is not a String or responds to the .call method."
|
129
129
|
end
|
130
130
|
|
131
|
+
if pattern.include?(":CACHE_ROOT")
|
132
|
+
old_pattern = pattern
|
133
|
+
pattern = pattern.sub(':CACHE_ROOT/', '')
|
134
|
+
logger.info "WARN: Detected :CACHE_ROOT in config.build.cache_dir".color(:yellow)
|
135
|
+
logger.info <<~EOL
|
136
|
+
This has been deprecated and :CACHE_ROOT should not be in the config.build.cache_dir setting.
|
137
|
+
The :CACHE_ROOT pattern has been removed from config.build.cache_dir automatically.
|
138
|
+
|
139
|
+
To remove this warning, remove the :CACHE_ROOT. For example:
|
140
|
+
|
141
|
+
config/app.rb
|
142
|
+
|
143
|
+
config.build.cache_dir = "#{old_pattern}"
|
144
|
+
|
145
|
+
Update it to:
|
146
|
+
|
147
|
+
config.build.cache_dir = "#{pattern}"
|
148
|
+
|
149
|
+
EOL
|
150
|
+
end
|
151
|
+
|
131
152
|
path = expansion(pattern)
|
132
153
|
path = "#{Terraspace.cache_root}/#{path}"
|
133
154
|
path.gsub!(%r{/+},'/') # remove double slashes are more. IE: // -> / Useful since region is '' in generic expander
|
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.1.
|
4
|
+
version: 2.1.3
|
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-07-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|