terraspace 1.1.2 → 1.1.3
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/all/runner.rb +18 -5
- data/lib/terraspace/version.rb +1 -1
- data/terraspace.gemspec +4 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0898edc00c5c61938fca0f22e97cd6cc1786e94ddc31f089ce095a75b3543240'
|
4
|
+
data.tar.gz: 9ecef3964e431d2665bf98adacea090cf09a4db0aa91a70d8955a8301444857a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0e86ce8739f13f2d5dfe1aa9caa7cae4a31603e6f365c36ba3d3edab25e98b824babb2077f15a983bc8f9f65146c91cc4c89850717fefb88e9bd258e32aecb
|
7
|
+
data.tar.gz: 71313596f783a4a635bec2e3536e38bdc22d0d4983ca862e1c0f45eeeca898eaa1474da0d25db76b7b8af4c557deb85ee293fb29883f1a376343c16a081244ab
|
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
|
+
## [1.1.3] - 2022-02-17
|
7
|
+
- [#207](https://github.com/boltops-tools/terraspace/pull/207) dont fork when all.concurrency = 1
|
8
|
+
|
6
9
|
## [1.1.2] - 2022-02-17
|
7
10
|
- [#200](https://github.com/boltops-tools/terraspace/pull/200) fix terraspace typos
|
8
11
|
- [#202](https://github.com/boltops-tools/terraspace/pull/202) Windows support: fix include_dir for windows
|
@@ -41,18 +41,27 @@ module Terraspace::All
|
|
41
41
|
concurrency = Terraspace.config.all.concurrency
|
42
42
|
batch.sort_by(&:name).each_slice(concurrency) do |slice|
|
43
43
|
slice.each do |node|
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
if fork?
|
45
|
+
pid = fork do
|
46
|
+
deploy_stack(node)
|
47
|
+
end
|
48
|
+
@pids[pid] = node.name # store mod_name mapping
|
49
|
+
else
|
50
|
+
deploy_stack(node)
|
47
51
|
end
|
48
|
-
@pids[pid] = node.name # store mod_name mapping
|
49
52
|
end
|
50
53
|
end
|
54
|
+
return unless fork?
|
51
55
|
wait_for_child_proccess
|
52
56
|
summarize # also reports lower-level error info
|
53
57
|
report_errors # reports finall errors and possibly exit
|
54
58
|
end
|
55
59
|
|
60
|
+
def deploy_stack(node)
|
61
|
+
build_stack(node.name)
|
62
|
+
run_terraspace(node.name)
|
63
|
+
end
|
64
|
+
|
56
65
|
def build_modules
|
57
66
|
builder = Terraspace::Builder.new(@options.merge(mod: "placeholder", clean: true, quiet: true, include_stacks: :none))
|
58
67
|
builder.build(modules: true)
|
@@ -109,7 +118,7 @@ module Terraspace::All
|
|
109
118
|
end
|
110
119
|
|
111
120
|
def run_terraspace(mod_name)
|
112
|
-
set_log_path!(mod_name)
|
121
|
+
set_log_path!(mod_name) if fork?
|
113
122
|
name = command_map(@command)
|
114
123
|
o = @options.merge(mod: mod_name, yes: true, build: false, input: false, log_to_stderr: true)
|
115
124
|
o.merge!(quiet: false) if @command == "init" # noisy so can filter and summarize output
|
@@ -123,6 +132,10 @@ module Terraspace::All
|
|
123
132
|
end
|
124
133
|
end
|
125
134
|
|
135
|
+
def fork?
|
136
|
+
Terraspace.config.all.concurrency > 1
|
137
|
+
end
|
138
|
+
|
126
139
|
def set_log_path!(mod_name)
|
127
140
|
command = terraspace_command(mod_name)
|
128
141
|
path = log_path(mod_name)
|
data/lib/terraspace/version.rb
CHANGED
data/terraspace.gemspec
CHANGED
@@ -12,6 +12,10 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://terraspace.cloud"
|
13
13
|
spec.license = "Apache-2.0"
|
14
14
|
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
spec.metadata["source_code_uri"] = "https://github.com/boltops-tools/terraspace"
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/boltops-tools/terraspace/blob/master/CHANGELOG.md"
|
18
|
+
|
15
19
|
spec.files = File.directory?('.git') ? `git ls-files`.split($/) : Dir.glob("**/*")
|
16
20
|
spec.bindir = "exe"
|
17
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
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: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
@@ -870,7 +870,10 @@ files:
|
|
870
870
|
homepage: https://terraspace.cloud
|
871
871
|
licenses:
|
872
872
|
- Apache-2.0
|
873
|
-
metadata:
|
873
|
+
metadata:
|
874
|
+
homepage_uri: https://terraspace.cloud
|
875
|
+
source_code_uri: https://github.com/boltops-tools/terraspace
|
876
|
+
changelog_uri: https://github.com/boltops-tools/terraspace/blob/master/CHANGELOG.md
|
874
877
|
post_install_message:
|
875
878
|
rdoc_options: []
|
876
879
|
require_paths:
|