terraspace 2.0.1 → 2.0.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/core.rb +8 -0
- data/lib/terraspace/plugin/expander/interface.rb +5 -8
- 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: 1a0597eb436b3d646b4163c32659fefccc2c8a023a1d155e6427ea2c809a9325
|
4
|
+
data.tar.gz: 40219e371fc4c9e8bb9f9b6e8c8e4806b3a1c5490a27d3e566467a966f8cf98e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466a494240d4b8c15f0ed6c8fb3a33973b5fbdf590c8ca1b18ce34718b84f0c14ce7487f2813d9a6202b5da9d500c93f408e669642b19c4c86f1e20e90d1d32a
|
7
|
+
data.tar.gz: 798bb6923e162bb18586de66f3ce9f5ac1e0182297a790569d6e40cd8104160b5ad9164bf81cc0e44d13bc140826f3ee30cb7701bb05c916e4ca365ab2d2d0c4
|
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
|
+
## [2.0.2] - 2022-06-21
|
7
|
+
- [#242](https://github.com/boltops-tools/terraspace/pull/242) :PROJECT variable: TS_PROJECT as well as config.cloud.project
|
8
|
+
|
6
9
|
## [2.0.1] - 2022-06-14
|
7
10
|
- [#240](https://github.com/boltops-tools/terraspace/pull/240) add project expander variable
|
8
11
|
|
data/lib/terraspace/core.rb
CHANGED
@@ -18,6 +18,14 @@ module Terraspace
|
|
18
18
|
ENV['TS_EXTRA'] unless ENV['TS_EXTRA'].blank?
|
19
19
|
end
|
20
20
|
|
21
|
+
def project
|
22
|
+
if ENV['TS_PROJECT'].blank?
|
23
|
+
config.cloud.project
|
24
|
+
else
|
25
|
+
ENV['TS_PROJECT']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
21
29
|
@@root = nil
|
22
30
|
def root
|
23
31
|
@@root ||= ENV['TS_ROOT'] || Dir.pwd
|
@@ -96,10 +96,11 @@ module Terraspace::Plugin::Expander
|
|
96
96
|
@mod.name
|
97
97
|
end
|
98
98
|
|
99
|
-
def app;
|
100
|
-
def
|
101
|
-
def
|
102
|
-
def
|
99
|
+
def app; Terraspace.app ; end
|
100
|
+
def env; Terraspace.env ; end
|
101
|
+
def extra; Terraspace.extra ; end
|
102
|
+
def project; Terraspace.project ; end
|
103
|
+
def role; Terraspace.role ; end
|
103
104
|
|
104
105
|
def type_instance
|
105
106
|
[type, instance].reject { |s| s.blank? }.join('-')
|
@@ -114,10 +115,6 @@ module Terraspace::Plugin::Expander
|
|
114
115
|
Terraspace.cache_root
|
115
116
|
end
|
116
117
|
|
117
|
-
def project
|
118
|
-
Terraspace.config.cloud.project
|
119
|
-
end
|
120
|
-
|
121
118
|
# So default config works:
|
122
119
|
# config.cache_dir = ":REGION/:ENV/:BUILD_DIR"
|
123
120
|
# For when folks configure it with the http backend for non-cloud providers
|
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.0.
|
4
|
+
version: 2.0.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: 2022-06-
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|