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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63e85a272438c620049ad889851566afb09872566924895dee994322d65f75f2
4
- data.tar.gz: b7f30a83ab50550fca3484eb6e7d58e39334708b5af98cd1d7a0964a24e96df7
3
+ metadata.gz: 1a0597eb436b3d646b4163c32659fefccc2c8a023a1d155e6427ea2c809a9325
4
+ data.tar.gz: 40219e371fc4c9e8bb9f9b6e8c8e4806b3a1c5490a27d3e566467a966f8cf98e
5
5
  SHA512:
6
- metadata.gz: 18896509755488401183456c7e6888b9d909df0f45a62e164e75b0e746a8775c88fb22da7e4e921d3eb0c5a779631ab7d441827caefa6eaf7c79fe984079140e
7
- data.tar.gz: 3993bfcf2cfd81eecef5841957e9b6bb4d12dfbe6a8276d00a96149f3032bf93206e68c7e53cba3171aacd16bfc5e3b1bfcdd6c26fc3c235816105b2ebb93fb8
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
 
@@ -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; Terraspace.app ; end
100
- def role; Terraspace.role ; end
101
- def env; Terraspace.env ; end
102
- def extra; Terraspace.extra ; end
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
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.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: 2.0.1
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-14 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport