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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/terraspace/app.rb +1 -0
- data/lib/terraspace/builder.rb +4 -2
- 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: 471e59d4e8478c78dd4de1190397e89548e68646fa6fcec02748442ecf9b282e
|
4
|
+
data.tar.gz: 65250fbef38cef2731688e9c75877747a2a567ecd0d9ba40ce30b2c86c5c73e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 400b78be5d433399119713533a7b56fd7b143b253cae7e96d344273d74784ba9fe877a2a92293f237cec9f0642694256bd04c0b0ad0bef73050d205603884f92
|
7
|
+
data.tar.gz: eac5b2042f655964d08454d7b5ea3ba40012145fed1c560bf116757c91857479ef7430cd1b7a2be661e828dbaf12a7cd0323014fb847a13299ef8fdc01cc8125
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/terraspace/app.rb
CHANGED
@@ -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
|
data/lib/terraspace/builder.rb
CHANGED
@@ -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
|
-
|
66
|
-
ARGV[0]
|
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
|
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: 0.3.
|
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-
|
11
|
+
date: 2020-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|