terraspace 2.2.15 → 2.2.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 967dc53b88e3a6e310eb1cac59b9247e54f77e097ee8eb98ab5d129a44550705
4
- data.tar.gz: 36c77aac237a37b26a96e018f51d6b885528cb69d8ca2bf6f40e8e0c638d4001
3
+ metadata.gz: ec8023758e5b18fa45f15235bb0e3a85b7fb7a5663f0d07a23ec5115342ef9e1
4
+ data.tar.gz: acefd153cfd10dac01f9dd3e315e5dcfd4252f5bb2e6b0dfc5624b34190c569f
5
5
  SHA512:
6
- metadata.gz: 98366017d1a0e256d101d3cbc2361c93f948ec056b39893296a83256efc09e6df8daaf07109a94d539f367932d80f12a5ed1267b84592340bb12232783b9e275
7
- data.tar.gz: 68c8327b6d66aceeec12dc3ffacc0324df964495cecccbcd37a3e517bbf3ab2c19e49314a2819ff95fc0ce3ac376ee01a5008af8792b34a4098b6ee0171162a1
6
+ metadata.gz: fa0efda34bdb11e2394065dbcb5661c4f6a30e35e928821e1e9c0cea129df1ac03a2f224e18e45fc204cc85c545ea68e4a05426843096ee7d3ee9425a9746712
7
+ data.tar.gz: 4d9c05b50e2fc9baf0454fdfd473fd70e509775211a71ee9f8df14ba60618e67386bca2f8a562a62f1b253b9f6ab37a166f889b49a9fa41bb24945ba9c8b76e5
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.2.17] - 2024-05-30
7
+ - [#347](https://github.com/boltops-tools/terraspace/pull/347) fixing typo in untaint help file
8
+ - [#348](https://github.com/boltops-tools/terraspace/pull/348) Allow up to terraform `1.5.7`
9
+ - [#349](https://github.com/boltops-tools/terraspace/pull/349) Add checks around plugin_gem_name in project Gemfile template
10
+
11
+ ## [2.2.16] - 2024-01-12
12
+ - [#339](https://github.com/boltops-tools/terraspace/pull/339) Use Terraspace.tmp_root value instead of hard-coded '/tmp/terraspace'
13
+ - [#345](https://github.com/boltops-tools/terraspace/pull/345) Update to use terraform_bin for state pull and help
14
+
6
15
  ## [2.2.15] - 2023-10-18
7
16
  - [#331](https://github.com/boltops-tools/terraspace/pull/331) adding tainting/untainting as a terraspace command
8
17
  - [#332](https://github.com/boltops-tools/terraspace/pull/332) terraspace fmt: generalize and pass through fmt option
@@ -1,7 +1,9 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "terraspace", "~> <%= terraspace_minor_version %>"
4
+ <% if plugin_gem_name -%>
4
5
  gem "<%= plugin_gem_name %>"
6
+ <% end -%>
5
7
  gem "rspec-terraspace"
6
8
 
7
9
  # Uncomment the ci and vcs provider you wish to use. Should use both ci and vcs gem
@@ -7,7 +7,7 @@ module Terraspace
7
7
  @options = options
8
8
  # Terraspace requires this terraform version or a fork
9
9
  @min_terraform_version = "0.12"
10
- @max_terraform_version = "1.5.5"
10
+ @max_terraform_version = "1.5.7"
11
11
  end
12
12
 
13
13
  # Used for the CLI
@@ -4,7 +4,7 @@
4
4
 
5
5
  Example with output:
6
6
 
7
- $ terraspace taint ec2 aws_instance.my_instance
7
+ $ terraspace untaint ec2 aws_instance.my_instance
8
8
  Building .terraspace-cache/us-east-1/dev/stacks/ec2
9
9
  Hook: Running terraspace before build hook.
10
10
  Current directory: .terraspace-cache/us-east-1/dev/stacks/ec2
@@ -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.17"
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.17
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-05-30 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.4.19
974
974
  signing_key:
975
975
  specification_version: 4
976
976
  summary: 'Terraspace: The Terraspace Framework'