terraspace 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b99a86e9b9b829fa0ac1b04a6774b02a43e67642219ea3f22aeb663869bfec6
4
- data.tar.gz: f2b265d5e13a86949ddb753e991fc8784c77361909162123dfd7d06d0c1c3555
3
+ metadata.gz: 6ec0e35f7878a3c4b0b7b1f2b12707f76bfbf6e81b47e04c50822cedd9e9baf1
4
+ data.tar.gz: 055d46279e41f268502ed3d0035ef0d3c28d5a03027810a628e5a5c51b4aec77
5
5
  SHA512:
6
- metadata.gz: 7fd4d65aac675d439e5e23089db75f937e3f50c72158099d1088112db67ed97c93afef6c47e0555cdde5a6dfe3e175ede017fc9e509c5419128c53ee114de91d
7
- data.tar.gz: 4ef8b0354c0e8dd14ccd074bc6ecd2cda96f80c846bfd3dc790dce4cf20f36efbe236020eff587555032ec1dd869ec405cde649a348e232e747ba7900ad79393
6
+ metadata.gz: 4cea499e91524e6b151bd3e9773fd9c41fa9c586b49d6c084e6b286b81e34b1f76838d9eb8a1adb6fc4aea8095ab047269f27e53ca30b6cc7ba0f6bb69204f44
7
+ data.tar.gz: ce9291d9769eca58a5e9debb70a8721d9bb2e2897096fd089898f56ae7f793f5300e830b4ee2306a9f74e25f7248c8748e954f8dc33c2de42884e31e615fb61d
@@ -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
@@ -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/).
@@ -6,7 +6,8 @@ class Terraspace::CLI
6
6
  end
7
7
 
8
8
  def run
9
- Dir.glob("{app,vendor}/{modules,stacks}/*").sort.each do |path|
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
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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