terraspace 0.3.1 → 0.3.2

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: fca27946f9c3b224b7bc637249c08f38f5873c0c6b5355515e87a8e3f5400bd2
4
- data.tar.gz: 02a9f77943aade0e9747df6f21e534afa00343f33a35bf7c03b428be4d5e5ce9
3
+ metadata.gz: 471e59d4e8478c78dd4de1190397e89548e68646fa6fcec02748442ecf9b282e
4
+ data.tar.gz: 65250fbef38cef2731688e9c75877747a2a567ecd0d9ba40ce30b2c86c5c73e6
5
5
  SHA512:
6
- metadata.gz: 453e76c3bd6d6e7732720faec48770451240c3b5eb902aa9b6cd9d1e621c53cf77927eeb87ad680a7639707319d7a384aed4453c9c839532ac89d51597b75adf
7
- data.tar.gz: 7dbf396731afceda8cfa54b2ecee8d22d017a668289eb86f78588b9356bafa169d6a602ca4a38ea1bfb7f787f184eee2dcef90b357017a87c8aa5a1d917d5936
6
+ metadata.gz: 400b78be5d433399119713533a7b56fd7b143b253cae7e96d344273d74784ba9fe877a2a92293f237cec9f0642694256bd04c0b0ad0bef73050d205603884f92
7
+ data.tar.gz: eac5b2042f655964d08454d7b5ea3ba40012145fed1c560bf116757c91857479ef7430cd1b7a2be661e828dbaf12a7cd0323014fb847a13299ef8fdc01cc8125
@@ -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
+ ## [0.3.2]
7
+ * #40 fix backend auto creation
8
+
6
9
  ## [0.3.1]
7
10
  * #39 fix backend auto creation
8
11
 
@@ -16,6 +16,7 @@ module Terraspace
16
16
  config.all.exit_on_fail.down = true
17
17
  config.all.exit_on_fail.up = true
18
18
  config.all.ignore_stacks = []
19
+ config.auto_create_backend = true
19
20
  config.build = ActiveSupport::OrderedOptions.new
20
21
  config.build.cache_dir = ":CACHE_ROOT/:REGION/:ENV/:BUILD_DIR"
21
22
  config.build.cache_root = nil # defaults to /full/path/to/.terraspace-cache
@@ -57,13 +57,15 @@ module Terraspace
57
57
 
58
58
  # Auto create after build_unresolved since will need to run state pull for dependencies
59
59
  def auto_create_backend
60
+ return if Terraspace.config.auto_create_backend == false
60
61
  return unless create_backend?
61
62
  Terraspace::Compiler::Backend.new(@mod).create
62
63
  end
63
64
 
64
65
  def create_backend?
65
- ARGV[0] == "up" || # terraspace up
66
- ARGV[0] == "all" && ARGV[1] == "up" # terraspace up
66
+ commands = %w[down init output plan providers refresh show up validate]
67
+ commands.include?(ARGV[0]) || # IE: terraspace up
68
+ ARGV[0] == "all" && commands.include?(ARGV[1]) # IE: terraspace all up
67
69
  end
68
70
 
69
71
  def clean
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
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: 0.3.1
4
+ version: 0.3.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: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport