terraspace 2.2.15 → 2.2.16
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/terraspace/compiler/erb/rewrite.rb +1 -1
- data/lib/terraspace/terraform/api/vars/json.rb +1 -1
- data/lib/terraspace/terraform/args/pass.rb +1 -1
- data/lib/terraspace/terraform/remote_state/fetcher.rb +1 -1
- data/lib/terraspace/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c22ae76e1a5a79215b5ab6da41cc2c7df6d2cee1a21bbf365de2bdeaef4223
|
4
|
+
data.tar.gz: 5d791b92e6baedce784edd7fd2dbd5d61fce961774f3a1486f3dca3e070b7dc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d530a184243d107a63ff98bfbd23bc40d1902f9b1611ae95089a684d71bf93bdddebc257238136ce7aad150641618ff811d129740561782c688702489258607
|
7
|
+
data.tar.gz: 9cbbe9eaedf4f790e49628d55804e7a072c956639d3e31fb3089da1d99833990ea61ee16c1af2ec659a0b0b0935e57d518d8c523f4f218ae9fbcbd762e1617d2
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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.16] - 2024-01-12
|
7
|
+
- [#339](https://github.com/boltops-tools/terraspace/pull/339) Use Terraspace.tmp_root value instead of hard-coded '/tmp/terraspace'
|
8
|
+
- [#345](https://github.com/boltops-tools/terraspace/pull/345) Update to use terraform_bin for state pull and help
|
9
|
+
|
6
10
|
## [2.2.15] - 2023-10-18
|
7
11
|
- [#331](https://github.com/boltops-tools/terraspace/pull/331) adding tainting/untainting as a terraspace command
|
8
12
|
- [#332](https://github.com/boltops-tools/terraspace/pull/332) terraspace fmt: generalize and pass through fmt option
|
@@ -8,7 +8,7 @@ module Terraspace::Compiler::Erb
|
|
8
8
|
input = IO.read(@src_path)
|
9
9
|
output = replace(input)
|
10
10
|
tfvar_path = @src_path.sub(Terraspace.root,'')
|
11
|
-
temp_path = "/
|
11
|
+
temp_path = "#{Terraspace.tmp_root}/rewrite#{tfvar_path}"
|
12
12
|
FileUtils.mkdir_p(File.dirname(temp_path))
|
13
13
|
IO.write(temp_path, output)
|
14
14
|
temp_path
|
@@ -16,7 +16,7 @@ class Terraspace::Terraform::Api::Vars
|
|
16
16
|
rescue JSON::ParserError => e
|
17
17
|
# TODO: show exact line with error
|
18
18
|
logger.info("ERROR in json: #{e.class}: #{e.message}")
|
19
|
-
path = "/
|
19
|
+
path = "#{Terraspace.tmp_root}/terraspace/debug/vars.json"
|
20
20
|
logger.info("Result also written to #{path} for inspection")
|
21
21
|
FileUtils.mkdir_p(File.dirname(path))
|
22
22
|
IO.write(path, result)
|
@@ -71,7 +71,7 @@ module Terraspace::Terraform::RemoteState
|
|
71
71
|
return unless success
|
72
72
|
|
73
73
|
FileUtils.mkdir_p(File.dirname(state_path))
|
74
|
-
command = "cd #{@child.cache_dir} &&
|
74
|
+
command = "cd #{@child.cache_dir} && #{Terraspace.terraform_bin} state pull > #{state_path}"
|
75
75
|
logger.debug "=> #{command}"
|
76
76
|
success = system(command)
|
77
77
|
# Can error if using a old terraform version and the statefile was created with a newer version of terraform
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -970,7 +970,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
970
970
|
- !ruby/object:Gem::Version
|
971
971
|
version: '0'
|
972
972
|
requirements: []
|
973
|
-
rubygems_version: 3.4
|
973
|
+
rubygems_version: 3.5.4
|
974
974
|
signing_key:
|
975
975
|
specification_version: 4
|
976
976
|
summary: 'Terraspace: The Terraspace Framework'
|