terraspace 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/terraspace/cli/all.rb +1 -1
- data/lib/terraspace/cli/help/all/init.md +33 -0
- data/lib/terraspace/cli/list.rb +2 -1
- data/lib/terraspace/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec0e35f7878a3c4b0b7b1f2b12707f76bfbf6e81b47e04c50822cedd9e9baf1
|
4
|
+
data.tar.gz: 055d46279e41f268502ed3d0035ef0d3c28d5a03027810a628e5a5c51b4aec77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cea499e91524e6b151bd3e9773fd9c41fa9c586b49d6c084e6b286b81e34b1f76838d9eb8a1adb6fc4aea8095ab047269f27e53ca30b6cc7ba0f6bb69204f44
|
7
|
+
data.tar.gz: ce9291d9769eca58a5e9debb70a8721d9bb2e2897096fd089898f56ae7f793f5300e830b4ee2306a9f74e25f7248c8748e954f8dc33c2de42884e31e615fb61d
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,11 @@
|
|
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.4.1]
|
7
|
+
* #47 `terraspace list` fix and `terraspace all init` help updates
|
8
|
+
|
6
9
|
## [0.4.0]
|
10
|
+
* #46 improve hooks, bundle, auto init and bug fixes
|
7
11
|
* improve hooks: allow multiple hooks of same type, change path hooks/terraform.rb
|
8
12
|
* improve hooks: introduce terraspace-level as well as terraform-level hooks
|
9
13
|
* improve hooks: can take Ruby block or shell script
|
data/lib/terraspace/cli/all.rb
CHANGED
@@ -18,7 +18,7 @@ class Terraspace::CLI
|
|
18
18
|
Terraspace::All::Grapher.new(@options.merge(stacks: stacks)).run
|
19
19
|
end
|
20
20
|
|
21
|
-
desc "init", "Init."
|
21
|
+
desc "init", "Init all or multiple stacks."
|
22
22
|
long_desc Help.text("all/init")
|
23
23
|
def init(*stacks)
|
24
24
|
Terraspace::All::Runner.new("init", @options.merge(stacks: stacks)).run
|
@@ -0,0 +1,33 @@
|
|
1
|
+
## Example
|
2
|
+
|
3
|
+
$ terraspace all init
|
4
|
+
Building one stack to build all stacks
|
5
|
+
Building .terraspace-cache/us-west-2/dev/stacks/c1
|
6
|
+
Downloading tfstate files for dependencies defined in tfvars...
|
7
|
+
Built in .terraspace-cache/us-west-2/dev/stacks/c1
|
8
|
+
Running:
|
9
|
+
terraspace init c1 # batch 1
|
10
|
+
terraspace init b1 # batch 2
|
11
|
+
terraspace init b2 # batch 2
|
12
|
+
terraspace init a1 # batch 3
|
13
|
+
Batch Run 1:
|
14
|
+
Running: terraspace init c1 Logs: log/init/c1.log
|
15
|
+
terraspace init c1: Terraform has been successfully initialized!
|
16
|
+
Batch Run 2:
|
17
|
+
Running: terraspace init b1 Logs: log/init/b1.log
|
18
|
+
Running: terraspace init b2 Logs: log/init/b2.log
|
19
|
+
terraspace init b1: Terraform has been successfully initialized!
|
20
|
+
terraspace init b2: Terraform has been successfully initialized!
|
21
|
+
Batch Run 3:
|
22
|
+
Running: terraspace init a1 Logs: log/init/a1.log
|
23
|
+
terraspace init a1: Terraform has been successfully initialized!
|
24
|
+
Time took: 6s
|
25
|
+
$
|
26
|
+
|
27
|
+
If Terraform is having trouble initializing, clearing the cache may help:
|
28
|
+
|
29
|
+
$ terraspace clean cache -y
|
30
|
+
Removed .terraspace-cache
|
31
|
+
Removed /tmp/terraspace
|
32
|
+
|
33
|
+
Also consider disabling the [terraform.plugin_cache.enabled](https://terraspace.cloud/docs/config/reference/).
|
data/lib/terraspace/cli/list.rb
CHANGED
@@ -6,7 +6,8 @@ class Terraspace::CLI
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def run
|
9
|
-
Dir.glob("{app,vendor}/{modules,stacks}/*").
|
9
|
+
dirs = Dir.glob("{app,vendor}/{modules,stacks}/*").select { |p| File.directory?(p) }
|
10
|
+
dirs.sort.each do |path|
|
10
11
|
if @type_dir
|
11
12
|
puts path if path.include?("/#{@type_dir}/")
|
12
13
|
else
|
data/lib/terraspace/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
@@ -481,6 +481,7 @@ files:
|
|
481
481
|
- lib/terraspace/cli/help.rb
|
482
482
|
- lib/terraspace/cli/help/all/down.md
|
483
483
|
- lib/terraspace/cli/help/all/graph.md
|
484
|
+
- lib/terraspace/cli/help/all/init.md
|
484
485
|
- lib/terraspace/cli/help/all/output.md
|
485
486
|
- lib/terraspace/cli/help/all/plan.md
|
486
487
|
- lib/terraspace/cli/help/all/providers.md
|