terraspace 2.2.15 → 2.2.16

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: 967dc53b88e3a6e310eb1cac59b9247e54f77e097ee8eb98ab5d129a44550705
4
- data.tar.gz: 36c77aac237a37b26a96e018f51d6b885528cb69d8ca2bf6f40e8e0c638d4001
3
+ metadata.gz: b9c22ae76e1a5a79215b5ab6da41cc2c7df6d2cee1a21bbf365de2bdeaef4223
4
+ data.tar.gz: 5d791b92e6baedce784edd7fd2dbd5d61fce961774f3a1486f3dca3e070b7dc3
5
5
  SHA512:
6
- metadata.gz: 98366017d1a0e256d101d3cbc2361c93f948ec056b39893296a83256efc09e6df8daaf07109a94d539f367932d80f12a5ed1267b84592340bb12232783b9e275
7
- data.tar.gz: 68c8327b6d66aceeec12dc3ffacc0324df964495cecccbcd37a3e517bbf3ab2c19e49314a2819ff95fc0ce3ac376ee01a5008af8792b34a4098b6ee0171162a1
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 = "/tmp/terraspace/rewrite#{tfvar_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 = "/tmp/terraspace/debug/vars.json"
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)
@@ -114,7 +114,7 @@ module Terraspace::Terraform::Args
114
114
 
115
115
  @@terraform_help = {}
116
116
  def terraform_help(name)
117
- @@terraform_help[name] ||= `terraform #{name} -help`
117
+ @@terraform_help[name] ||= `#{Terraspace.terraform_bin} #{name} -help`
118
118
  end
119
119
  end
120
120
  end
@@ -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} && terraform state pull > #{state_path}"
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
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "2.2.15"
2
+ VERSION = "2.2.16"
3
3
  end
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.15
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: 2023-10-18 00:00:00.000000000 Z
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.20
973
+ rubygems_version: 3.5.4
974
974
  signing_key:
975
975
  specification_version: 4
976
976
  summary: 'Terraspace: The Terraspace Framework'