terraspace 0.3.3 → 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/.cody/aws/bin/build.sh +2 -0
- data/.cody/azurerm/bin/build.sh +2 -0
- data/.cody/google/bin/build.sh +2 -0
- data/CHANGELOG.md +39 -0
- data/README.md +1 -1
- data/lib/templates/base/project/README.md +1 -1
- data/lib/terraspace.rb +1 -0
- data/lib/terraspace/all/preview.rb +1 -1
- data/lib/terraspace/all/runner.rb +1 -0
- data/lib/terraspace/all/summary.rb +29 -2
- data/lib/terraspace/app.rb +9 -5
- data/lib/terraspace/builder.rb +10 -6
- data/lib/terraspace/cli.rb +33 -39
- data/lib/terraspace/cli/all.rb +15 -9
- data/lib/terraspace/cli/bundle.rb +2 -1
- data/lib/terraspace/cli/clean.rb +18 -6
- data/lib/terraspace/cli/clean/all.rb +18 -0
- data/lib/terraspace/cli/clean/base.rb +15 -0
- data/lib/terraspace/cli/clean/cache.rb +25 -0
- data/lib/terraspace/cli/{logs/tasks.rb → clean/logs.rb} +16 -5
- data/lib/terraspace/cli/cloud.rb +3 -9
- data/lib/terraspace/cli/cloud/runs.rb +0 -2
- data/lib/terraspace/cli/help/all/down.md +32 -0
- data/lib/terraspace/cli/help/all/graph.md +21 -0
- data/lib/terraspace/cli/help/all/init.md +33 -0
- data/lib/terraspace/cli/help/all/output.md +22 -0
- data/lib/terraspace/cli/help/all/plan.md +25 -0
- data/lib/terraspace/cli/help/all/providers.md +21 -0
- data/lib/terraspace/cli/help/all/refresh.md +17 -0
- data/lib/terraspace/cli/help/all/show.md +21 -0
- data/lib/terraspace/cli/help/all/up.md +27 -0
- data/lib/terraspace/cli/help/all/validate.md +21 -0
- data/lib/terraspace/cli/help/build.md +6 -0
- data/lib/terraspace/cli/help/bundle.md +9 -5
- data/lib/terraspace/cli/help/check_setup.md +9 -0
- data/lib/terraspace/cli/help/clean/all.md +10 -0
- data/lib/terraspace/cli/help/clean/cache.md +12 -0
- data/lib/terraspace/cli/help/clean/logs.md +17 -0
- data/lib/terraspace/cli/help/cloud/destroy.md +16 -0
- data/lib/terraspace/cli/help/cloud/list.md +7 -0
- data/lib/terraspace/cli/help/cloud/runs/list.md +3 -3
- data/lib/terraspace/cli/help/cloud/runs/prune.md +1 -1
- data/lib/terraspace/cli/help/cloud/sync.md +26 -2
- data/lib/terraspace/cli/help/console.md +8 -0
- data/lib/terraspace/cli/help/down.md +26 -0
- data/lib/terraspace/cli/help/info.md +43 -0
- data/lib/terraspace/cli/help/init.md +37 -0
- data/lib/terraspace/cli/help/list.md +20 -0
- data/lib/terraspace/cli/help/logs.md +48 -0
- data/lib/terraspace/cli/help/logs/remove.md +5 -0
- data/lib/terraspace/cli/help/logs/truncate.md +5 -0
- data/lib/terraspace/cli/help/new/bootstrap_test.md +8 -0
- data/lib/terraspace/cli/help/new/example.md +8 -0
- data/lib/terraspace/cli/help/new/git_hook.md +6 -0
- data/lib/terraspace/cli/help/new/module.md +9 -0
- data/lib/terraspace/cli/help/new/module_test.md +12 -0
- data/lib/terraspace/cli/help/new/plugin.md +49 -0
- data/lib/terraspace/cli/help/new/project.md +40 -0
- data/lib/terraspace/cli/help/new/project_test.md +8 -0
- data/lib/terraspace/cli/help/new/shim.md +21 -0
- data/lib/terraspace/cli/help/new/stack.md +9 -0
- data/lib/terraspace/cli/help/output.md +6 -0
- data/lib/terraspace/cli/help/plan.md +29 -0
- data/lib/terraspace/cli/help/providers.md +18 -0
- data/lib/terraspace/cli/help/refresh.md +11 -0
- data/lib/terraspace/cli/help/seed.md +7 -0
- data/lib/terraspace/cli/help/show.md +36 -0
- data/lib/terraspace/cli/help/summary.md +11 -0
- data/lib/terraspace/cli/help/test.md +35 -0
- data/lib/terraspace/cli/help/up.md +30 -0
- data/lib/terraspace/cli/help/validate.md +9 -0
- data/lib/terraspace/cli/info.rb +4 -16
- data/lib/terraspace/cli/init.rb +3 -7
- data/lib/terraspace/cli/list.rb +2 -1
- data/lib/terraspace/cli/logs.rb +106 -9
- data/lib/terraspace/cli/{log → logs}/concern.rb +1 -1
- data/lib/terraspace/cli/new.rb +18 -18
- data/lib/terraspace/cli/new/git_hook.rb +4 -1
- data/lib/terraspace/cli/new/helper.rb +9 -2
- data/lib/terraspace/cli/new/project.rb +1 -1
- data/lib/terraspace/cli/summary.rb +2 -2
- data/lib/terraspace/command.rb +1 -1
- data/lib/terraspace/compiler/dependencies/helpers.rb +34 -0
- data/lib/terraspace/compiler/dsl/syntax/helpers/common.rb +0 -26
- data/lib/terraspace/compiler/dsl/syntax/tfvar.rb +1 -0
- data/lib/terraspace/compiler/erb/context.rb +1 -1
- data/lib/terraspace/compiler/erb/helpers.rb +6 -0
- data/lib/terraspace/dependency/graph.rb +2 -1
- data/lib/terraspace/dependency/helper/base.rb +7 -0
- data/lib/terraspace/dependency/helper/depends_on.rb +12 -0
- data/lib/terraspace/dependency/helper/output.rb +11 -0
- data/lib/terraspace/hooks/builder.rb +52 -0
- data/lib/terraspace/hooks/concern.rb +9 -0
- data/lib/terraspace/{terraform/hooks → hooks}/dsl.rb +3 -2
- data/lib/terraspace/hooks/runner.rb +23 -0
- data/lib/terraspace/mod.rb +11 -2
- data/lib/terraspace/plugin/summary/interface.rb +4 -2
- data/lib/terraspace/shell.rb +29 -14
- data/lib/terraspace/terraform/args/custom.rb +1 -1
- data/lib/terraspace/terraform/cloud/runs/lister.rb +0 -2
- data/lib/terraspace/terraform/cloud/syncer.rb +2 -2
- data/lib/terraspace/terraform/cloud/workspace.rb +0 -9
- data/lib/terraspace/terraform/remote_state/fetcher.rb +13 -4
- data/lib/terraspace/terraform/remote_state/marker/output.rb +3 -1
- data/lib/terraspace/terraform/remote_state/output_proxy.rb +18 -14
- data/lib/terraspace/terraform/remote_state/unresolved.rb +40 -0
- data/lib/terraspace/terraform/runner.rb +2 -7
- data/lib/terraspace/version.rb +1 -1
- data/spec/fixtures/dependencies/app/stacks/a1/tfvars/dev.tfvars +1 -0
- data/spec/fixtures/fetcher/c1.json +4 -0
- data/spec/terraspace/all/summary_spec.rb +1 -1
- data/spec/terraspace/compiler/erb/render_spec.rb +15 -0
- data/spec/terraspace/dependency/helper/depends_on_spec.rb +27 -0
- data/spec/terraspace/dependency/helper/output_spec.rb +29 -0
- data/spec/terraspace/{terraform/hooks → hooks}/builder_spec.rb +4 -5
- data/spec/terraspace/terraform/remote_state/fetcher_spec.rb +108 -27
- data/spec/terraspace/terraform/remote_state/marker/output_spec.rb +36 -0
- data/spec/terraspace/terraform/remote_state/output_proxy_spec.rb +69 -0
- data/terraspace.gemspec +1 -1
- metadata +78 -13
- data/lib/terraspace/cli/help/log.md +0 -46
- data/lib/terraspace/cli/help/update.md +0 -5
- data/lib/terraspace/cli/log.rb +0 -112
- data/lib/terraspace/terraform/hooks/builder.rb +0 -40
@@ -0,0 +1,27 @@
|
|
1
|
+
describe Terraspace::Dependency::Helper::DependsOn do
|
2
|
+
let(:depends_on) do
|
3
|
+
described_class.new(mod, identifier, options)
|
4
|
+
end
|
5
|
+
let (:mod) { Terraspace::Mod.new("a1") }
|
6
|
+
# follow args dont matter for spec
|
7
|
+
let (:identifier) { "b1" }
|
8
|
+
let (:options) { {} }
|
9
|
+
|
10
|
+
context "unresolved" do
|
11
|
+
before(:each) { mod.resolved = false }
|
12
|
+
it "result calls Marker::Output" do
|
13
|
+
allow(Terraspace::Terraform::RemoteState::Marker::Output).to receive(:new).and_return(double(:marker_output).as_null_object)
|
14
|
+
result = depends_on.result
|
15
|
+
expect(result).to be_a(RSpec::Mocks::Double)
|
16
|
+
expect(result.instance_variable_get(:@name)).to eq :marker_output
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context "resolved" do
|
21
|
+
before(:each) { mod.resolved = true }
|
22
|
+
it "return an raw String" do
|
23
|
+
result = depends_on.result
|
24
|
+
expect(result).to eq "# a1 depends on b1"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
describe Terraspace::Dependency::Helper::Output do
|
2
|
+
let(:output) do
|
3
|
+
described_class.new(mod, identifier, options)
|
4
|
+
end
|
5
|
+
let (:mod) { Terraspace::Mod.new("foo") }
|
6
|
+
# doesnt matter for spec
|
7
|
+
let (:identifier) { nil }
|
8
|
+
let (:options) { nil }
|
9
|
+
|
10
|
+
context "unresolved" do
|
11
|
+
before(:each) { mod.resolved = false }
|
12
|
+
it "result calls Marker::Output" do
|
13
|
+
allow(Terraspace::Terraform::RemoteState::Marker::Output).to receive(:new).and_return(double(:marker_output).as_null_object)
|
14
|
+
result = output.result
|
15
|
+
expect(result).to be_a(RSpec::Mocks::Double)
|
16
|
+
expect(result.instance_variable_get(:@name)).to eq :marker_output
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context "resolved" do
|
21
|
+
before(:each) { mod.resolved = true }
|
22
|
+
it "result calls Fetcher" do
|
23
|
+
allow(Terraspace::Terraform::RemoteState::Fetcher).to receive(:new).and_return(double(:fetcher_output).as_null_object)
|
24
|
+
result = output.result
|
25
|
+
expect(result).to be_a(RSpec::Mocks::Double)
|
26
|
+
expect(result.instance_variable_get(:@name)).to eq :fetcher_output
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,7 +1,6 @@
|
|
1
|
-
describe Terraspace::
|
1
|
+
describe Terraspace::Hooks::Builder do
|
2
2
|
let(:builder) do
|
3
|
-
builder = described_class.new(mod, name)
|
4
|
-
builder.instance_variable_set(:@file, file) # override @file for spec
|
3
|
+
builder = described_class.new(mod, dsl_file, name)
|
5
4
|
builder
|
6
5
|
end
|
7
6
|
let(:mod) do
|
@@ -11,7 +10,7 @@ describe Terraspace::Terraform::Hooks::Builder do
|
|
11
10
|
end
|
12
11
|
|
13
12
|
context "single" do
|
14
|
-
let(:
|
13
|
+
let(:dsl_file) { fixture("terraform/hooks/single.rb") }
|
15
14
|
let(:name) { "apply" }
|
16
15
|
it "build creates the @hooks structure" do
|
17
16
|
hooks = builder.build
|
@@ -25,7 +24,7 @@ describe Terraspace::Terraform::Hooks::Builder do
|
|
25
24
|
end
|
26
25
|
|
27
26
|
context "multiple" do
|
28
|
-
let(:
|
27
|
+
let(:dsl_file) { fixture("terraform/hooks/multiple.rb") }
|
29
28
|
let(:name) { "apply" }
|
30
29
|
it "build creates the @hooks structure" do
|
31
30
|
hooks = builder.build
|
@@ -11,41 +11,122 @@ describe Terraspace::Terraform::RemoteState::Fetcher do
|
|
11
11
|
double("c1").as_null_object
|
12
12
|
end
|
13
13
|
|
14
|
-
context "
|
15
|
-
|
16
|
-
|
14
|
+
context "to_s uses to_json by default" do
|
15
|
+
context "pull success" do
|
16
|
+
let(:state_path) { "spec/fixtures/fetcher/c1.json" }
|
17
|
+
let(:pull_success) { true }
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
context "c1.length" do
|
20
|
+
let(:identifier) { "c1.length" }
|
21
|
+
it "fetched found attribute" do
|
22
|
+
expect(fetcher.output.to_s).to eq '1' # Integer as json matches spec/fixtures/fetcher/c1.json outputs.length.value
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context "c1.complex" do
|
27
|
+
let(:identifier) { "c1.complex" }
|
28
|
+
it "fetched found attribute" do
|
29
|
+
expect(fetcher.output.to_s).to eq ["a","b"].to_json # matches spec/fixtures/fetcher/c1.json outputs.complex.value
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
context "c1.does-not-exist" do
|
34
|
+
let(:identifier) { "c1.does-not-exist" }
|
35
|
+
it "fetched missing output" do
|
36
|
+
output_proxy = fetcher.output
|
37
|
+
expect(output_proxy.raw).to be nil
|
38
|
+
value = output_proxy.to_s
|
39
|
+
# (Output length9 was not found for the b1 tfvars file. Either c1 stack has not been deployed yet or it does not have this output: length9)
|
40
|
+
expect(value).to include "not found"
|
41
|
+
end
|
22
42
|
end
|
23
43
|
end
|
24
44
|
|
25
|
-
context "
|
26
|
-
let(:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
45
|
+
context "pull fail" do
|
46
|
+
let(:state_path) { nil }
|
47
|
+
let(:pull_success) { false }
|
48
|
+
|
49
|
+
context "stack needs to be deployed" do
|
50
|
+
let(:identifier) { "c1.length" }
|
51
|
+
it "fetched" do
|
52
|
+
output_proxy = fetcher.output
|
53
|
+
expect(output_proxy.raw).to be nil
|
54
|
+
# (Output length could not be looked up for the b1 tfvars file. c1 stack needs to be deployed)
|
55
|
+
value = output_proxy.to_s
|
56
|
+
expect(value).to include "stack needs to be deployed"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
context "bucket does not exist" do
|
61
|
+
let(:identifier) { "c1.length" }
|
62
|
+
it "fetched" do
|
63
|
+
fetcher.bucket_not_found_error # fake it!
|
64
|
+
output_proxy = fetcher.output
|
65
|
+
expect(output_proxy.raw).to be nil
|
66
|
+
# (Output length could not be looked up for the b1 tfvars file. c1 stack needs to be deployed)
|
67
|
+
value = output_proxy.to_s
|
68
|
+
expect(value).to include "bucket for the backend could not be found"
|
69
|
+
end
|
33
70
|
end
|
34
71
|
end
|
35
72
|
end
|
36
73
|
|
37
|
-
context "
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
74
|
+
context "to_ruby" do
|
75
|
+
context "pull success" do
|
76
|
+
let(:state_path) { "spec/fixtures/fetcher/c1.json" }
|
77
|
+
let(:pull_success) { true }
|
78
|
+
|
79
|
+
context "c1.length" do
|
80
|
+
let(:identifier) { "c1.length" }
|
81
|
+
it "fetched found attribute" do
|
82
|
+
expect(fetcher.output.to_ruby).to eq 1 # raw Integer
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
context "c1.complex" do
|
87
|
+
let(:identifier) { "c1.complex" }
|
88
|
+
it "fetched found attribute" do
|
89
|
+
expect(fetcher.output.to_ruby).to eq ["a","b"] # raw Array
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
context "c1.does-not-exist" do
|
94
|
+
let(:identifier) { "c1.does-not-exist" }
|
95
|
+
it "fetched missing output" do
|
96
|
+
output_proxy = fetcher.output
|
97
|
+
expect(output_proxy.raw).to be nil
|
98
|
+
value = output_proxy.to_ruby
|
99
|
+
# (Output length9 was not found for the b1 tfvars file. Either c1 stack has not been deployed yet or it does not have this output: length9)
|
100
|
+
expect(value).to include "not found"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
context "pull fail" do
|
106
|
+
let(:state_path) { nil }
|
107
|
+
let(:pull_success) { false }
|
108
|
+
|
109
|
+
context "stack needs to be deployed" do
|
110
|
+
let(:identifier) { "c1.length" }
|
111
|
+
it "fetched" do
|
112
|
+
output_proxy = fetcher.output
|
113
|
+
expect(output_proxy.raw).to be nil
|
114
|
+
# (Output length could not be looked up for the b1 tfvars file. c1 stack needs to be deployed)
|
115
|
+
value = output_proxy.to_s
|
116
|
+
expect(value).to include "stack needs to be deployed"
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
context "bucket does not exist" do
|
121
|
+
let(:identifier) { "c1.length" }
|
122
|
+
it "fetched" do
|
123
|
+
fetcher.bucket_not_found_error # fake it!
|
124
|
+
output_proxy = fetcher.output
|
125
|
+
expect(output_proxy.raw).to be nil
|
126
|
+
# (Output length could not be looked up for the b1 tfvars file. c1 stack needs to be deployed)
|
127
|
+
value = output_proxy.to_s
|
128
|
+
expect(value).to include "bucket for the backend could not be found"
|
129
|
+
end
|
49
130
|
end
|
50
131
|
end
|
51
132
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
describe Terraspace::Terraform::RemoteState::Marker::Output do
|
2
|
+
let(:output) do
|
3
|
+
output = described_class.new(mod, identifier, options)
|
4
|
+
allow(output).to receive(:warning) # supress warning messaging about missing child stack
|
5
|
+
output
|
6
|
+
end
|
7
|
+
let (:mod) { Terraspace::Mod.new("a1") }
|
8
|
+
let (:options) { {} }
|
9
|
+
|
10
|
+
before(:each) do
|
11
|
+
Terraspace::Dependency::Registry.class_variable_set("@@data", Set.new)
|
12
|
+
end
|
13
|
+
|
14
|
+
# markers are always only called during unresolved stage
|
15
|
+
context "child stack found" do
|
16
|
+
let(:identifier) { "b1.length" }
|
17
|
+
it "registers dependency and always return a OutputProxy" do
|
18
|
+
allow(output).to receive(:valid?).and_return(true) # child stack found
|
19
|
+
result = output.build
|
20
|
+
expect(result).to be_a(Terraspace::Terraform::RemoteState::OutputProxy)
|
21
|
+
set = Terraspace::Dependency::Registry.data
|
22
|
+
expect(set).not_to be_empty
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context "child stack not found" do
|
27
|
+
let(:identifier) { "b1.length" }
|
28
|
+
it "does not registers dependency and always return a OutputProxy" do
|
29
|
+
allow(output).to receive(:valid?).and_return(false) # child stack not found
|
30
|
+
result = output.build
|
31
|
+
expect(result).to be_a(Terraspace::Terraform::RemoteState::OutputProxy)
|
32
|
+
set = Terraspace::Dependency::Registry.data
|
33
|
+
expect(set).to be_empty
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
Unresolved = Terraspace::Terraform::RemoteState::Unresolved
|
2
|
+
|
3
|
+
describe Terraspace::Terraform::RemoteState::OutputProxy do
|
4
|
+
let(:proxy) do
|
5
|
+
described_class.new(mod, raw, options)
|
6
|
+
end
|
7
|
+
let (:mod) { Terraspace::Mod.new("foo") }
|
8
|
+
let (:raw) { nil }
|
9
|
+
let (:options) { {} }
|
10
|
+
|
11
|
+
context "unresolved" do
|
12
|
+
before(:each) { mod.resolved = false }
|
13
|
+
it "always return Unresolved" do
|
14
|
+
value = proxy.to_s
|
15
|
+
expect(value).to be_a(Unresolved)
|
16
|
+
expect(value.to_str).to eq "(unresolved)"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
# Resolved value should always return a String because ERB requires string.
|
21
|
+
# Always use to_json.
|
22
|
+
context "resolved with mock" do
|
23
|
+
before(:each) { mod.resolved = true }
|
24
|
+
let (:raw) { nil }
|
25
|
+
let (:options) { {mock: "mock value"} }
|
26
|
+
|
27
|
+
it "return to_json String with mock value" do
|
28
|
+
value = proxy.to_s
|
29
|
+
expect(value).to be_a(String)
|
30
|
+
expect(value.to_str).to eq '"mock value"' # note double quotes from the to_json
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
context "resolved with errors" do
|
35
|
+
before(:each) { mod.resolved = true }
|
36
|
+
let (:raw) { nil }
|
37
|
+
let (:options) { {error: "error message"} }
|
38
|
+
|
39
|
+
it "return to_json String with error message" do
|
40
|
+
value = proxy.to_s
|
41
|
+
expect(value).to be_a(String)
|
42
|
+
expect(value.to_str).to eq '"error message"' # note double quotes from the to_json
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
context "to_ruby resolved with mock" do
|
47
|
+
before(:each) { mod.resolved = true }
|
48
|
+
let (:raw) { nil }
|
49
|
+
let (:options) { {mock: "mock value"} }
|
50
|
+
|
51
|
+
it "return to_json String with mock value" do
|
52
|
+
value = proxy.to_ruby
|
53
|
+
expect(value).to be_a(String)
|
54
|
+
expect(value.to_str).to eq "mock value"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context "to_ruby resolved with errors" do
|
59
|
+
before(:each) { mod.resolved = true }
|
60
|
+
let (:raw) { nil }
|
61
|
+
let (:options) { {error: "error message"} }
|
62
|
+
|
63
|
+
it "return to_json String with error message" do
|
64
|
+
value = proxy.to_ruby
|
65
|
+
expect(value).to be_a(String)
|
66
|
+
expect(value.to_str).to eq "error message"
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
data/terraspace.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency "memoist"
|
29
29
|
spec.add_dependency "rainbow"
|
30
30
|
spec.add_dependency "render_me_pretty"
|
31
|
-
spec.add_dependency "terraspace-bundler", "~> 0.
|
31
|
+
spec.add_dependency "terraspace-bundler", "~> 0.3.0"
|
32
32
|
spec.add_dependency "thor"
|
33
33
|
spec.add_dependency "tty-tree"
|
34
34
|
spec.add_dependency "zeitwerk"
|
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: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 0.3.0
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.3.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: thor
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -470,26 +470,71 @@ files:
|
|
470
470
|
- lib/terraspace/cli/bundle.rb
|
471
471
|
- lib/terraspace/cli/check_setup.rb
|
472
472
|
- lib/terraspace/cli/clean.rb
|
473
|
+
- lib/terraspace/cli/clean/all.rb
|
474
|
+
- lib/terraspace/cli/clean/base.rb
|
475
|
+
- lib/terraspace/cli/clean/cache.rb
|
476
|
+
- lib/terraspace/cli/clean/logs.rb
|
473
477
|
- lib/terraspace/cli/cloud.rb
|
474
478
|
- lib/terraspace/cli/cloud/runs.rb
|
475
479
|
- lib/terraspace/cli/commander.rb
|
476
480
|
- lib/terraspace/cli/down.rb
|
477
481
|
- lib/terraspace/cli/help.rb
|
482
|
+
- lib/terraspace/cli/help/all/down.md
|
483
|
+
- lib/terraspace/cli/help/all/graph.md
|
484
|
+
- lib/terraspace/cli/help/all/init.md
|
485
|
+
- lib/terraspace/cli/help/all/output.md
|
486
|
+
- lib/terraspace/cli/help/all/plan.md
|
487
|
+
- lib/terraspace/cli/help/all/providers.md
|
488
|
+
- lib/terraspace/cli/help/all/refresh.md
|
489
|
+
- lib/terraspace/cli/help/all/show.md
|
490
|
+
- lib/terraspace/cli/help/all/up.md
|
491
|
+
- lib/terraspace/cli/help/all/validate.md
|
492
|
+
- lib/terraspace/cli/help/build.md
|
478
493
|
- lib/terraspace/cli/help/bundle.md
|
494
|
+
- lib/terraspace/cli/help/check_setup.md
|
495
|
+
- lib/terraspace/cli/help/clean/all.md
|
496
|
+
- lib/terraspace/cli/help/clean/cache.md
|
497
|
+
- lib/terraspace/cli/help/clean/logs.md
|
498
|
+
- lib/terraspace/cli/help/cloud/destroy.md
|
499
|
+
- lib/terraspace/cli/help/cloud/list.md
|
479
500
|
- lib/terraspace/cli/help/cloud/runs/list.md
|
480
501
|
- lib/terraspace/cli/help/cloud/runs/prune.md
|
481
502
|
- lib/terraspace/cli/help/cloud/sync.md
|
482
503
|
- lib/terraspace/cli/help/completion.md
|
483
504
|
- lib/terraspace/cli/help/completion_script.md
|
484
|
-
- lib/terraspace/cli/help/
|
485
|
-
- lib/terraspace/cli/help/
|
505
|
+
- lib/terraspace/cli/help/console.md
|
506
|
+
- lib/terraspace/cli/help/down.md
|
507
|
+
- lib/terraspace/cli/help/info.md
|
508
|
+
- lib/terraspace/cli/help/init.md
|
509
|
+
- lib/terraspace/cli/help/list.md
|
510
|
+
- lib/terraspace/cli/help/logs.md
|
511
|
+
- lib/terraspace/cli/help/logs/remove.md
|
512
|
+
- lib/terraspace/cli/help/logs/truncate.md
|
513
|
+
- lib/terraspace/cli/help/new/bootstrap_test.md
|
514
|
+
- lib/terraspace/cli/help/new/example.md
|
515
|
+
- lib/terraspace/cli/help/new/git_hook.md
|
516
|
+
- lib/terraspace/cli/help/new/module.md
|
517
|
+
- lib/terraspace/cli/help/new/module_test.md
|
518
|
+
- lib/terraspace/cli/help/new/plugin.md
|
519
|
+
- lib/terraspace/cli/help/new/project.md
|
520
|
+
- lib/terraspace/cli/help/new/project_test.md
|
521
|
+
- lib/terraspace/cli/help/new/shim.md
|
522
|
+
- lib/terraspace/cli/help/new/stack.md
|
523
|
+
- lib/terraspace/cli/help/output.md
|
524
|
+
- lib/terraspace/cli/help/plan.md
|
525
|
+
- lib/terraspace/cli/help/providers.md
|
526
|
+
- lib/terraspace/cli/help/refresh.md
|
527
|
+
- lib/terraspace/cli/help/seed.md
|
528
|
+
- lib/terraspace/cli/help/show.md
|
529
|
+
- lib/terraspace/cli/help/summary.md
|
530
|
+
- lib/terraspace/cli/help/test.md
|
531
|
+
- lib/terraspace/cli/help/up.md
|
532
|
+
- lib/terraspace/cli/help/validate.md
|
486
533
|
- lib/terraspace/cli/info.rb
|
487
534
|
- lib/terraspace/cli/init.rb
|
488
535
|
- lib/terraspace/cli/list.rb
|
489
|
-
- lib/terraspace/cli/log.rb
|
490
|
-
- lib/terraspace/cli/log/concern.rb
|
491
536
|
- lib/terraspace/cli/logs.rb
|
492
|
-
- lib/terraspace/cli/logs/
|
537
|
+
- lib/terraspace/cli/logs/concern.rb
|
493
538
|
- lib/terraspace/cli/new.rb
|
494
539
|
- lib/terraspace/cli/new/git_hook.rb
|
495
540
|
- lib/terraspace/cli/new/helper.rb
|
@@ -521,6 +566,7 @@ files:
|
|
521
566
|
- lib/terraspace/compiler/cleaner.rb
|
522
567
|
- lib/terraspace/compiler/cleaner/backend_change.rb
|
523
568
|
- lib/terraspace/compiler/commands_concern.rb
|
569
|
+
- lib/terraspace/compiler/dependencies/helpers.rb
|
524
570
|
- lib/terraspace/compiler/dirs_concern.rb
|
525
571
|
- lib/terraspace/compiler/dsl/base.rb
|
526
572
|
- lib/terraspace/compiler/dsl/meta/local.rb
|
@@ -541,6 +587,7 @@ files:
|
|
541
587
|
- lib/terraspace/compiler/dsl/syntax/tfvar/common.rb
|
542
588
|
- lib/terraspace/compiler/dsl/tfvars.rb
|
543
589
|
- lib/terraspace/compiler/erb/context.rb
|
590
|
+
- lib/terraspace/compiler/erb/helpers.rb
|
544
591
|
- lib/terraspace/compiler/erb/render.rb
|
545
592
|
- lib/terraspace/compiler/expander.rb
|
546
593
|
- lib/terraspace/compiler/strategy/abstract_base.rb
|
@@ -560,11 +607,18 @@ files:
|
|
560
607
|
- lib/terraspace/completer/script.sh
|
561
608
|
- lib/terraspace/core.rb
|
562
609
|
- lib/terraspace/dependency/graph.rb
|
610
|
+
- lib/terraspace/dependency/helper/base.rb
|
611
|
+
- lib/terraspace/dependency/helper/depends_on.rb
|
612
|
+
- lib/terraspace/dependency/helper/output.rb
|
563
613
|
- lib/terraspace/dependency/node.rb
|
564
614
|
- lib/terraspace/dependency/registry.rb
|
565
615
|
- lib/terraspace/ext.rb
|
566
616
|
- lib/terraspace/ext/bundler.rb
|
567
617
|
- lib/terraspace/ext/core/module.rb
|
618
|
+
- lib/terraspace/hooks/builder.rb
|
619
|
+
- lib/terraspace/hooks/concern.rb
|
620
|
+
- lib/terraspace/hooks/dsl.rb
|
621
|
+
- lib/terraspace/hooks/runner.rb
|
568
622
|
- lib/terraspace/logger.rb
|
569
623
|
- lib/terraspace/logger/formatter.rb
|
570
624
|
- lib/terraspace/mod.rb
|
@@ -610,12 +664,11 @@ files:
|
|
610
664
|
- lib/terraspace/terraform/cloud/sync.rb
|
611
665
|
- lib/terraspace/terraform/cloud/syncer.rb
|
612
666
|
- lib/terraspace/terraform/cloud/workspace.rb
|
613
|
-
- lib/terraspace/terraform/hooks/builder.rb
|
614
|
-
- lib/terraspace/terraform/hooks/dsl.rb
|
615
667
|
- lib/terraspace/terraform/remote_state/fetcher.rb
|
616
668
|
- lib/terraspace/terraform/remote_state/marker/output.rb
|
617
669
|
- lib/terraspace/terraform/remote_state/marker/pretty_tracer.rb
|
618
670
|
- lib/terraspace/terraform/remote_state/output_proxy.rb
|
671
|
+
- lib/terraspace/terraform/remote_state/unresolved.rb
|
619
672
|
- lib/terraspace/terraform/runner.rb
|
620
673
|
- lib/terraspace/tester.rb
|
621
674
|
- lib/terraspace/tester/finder.rb
|
@@ -627,6 +680,7 @@ files:
|
|
627
680
|
- lib/terraspace/version.rb
|
628
681
|
- spec/cli_spec.rb
|
629
682
|
- spec/fixtures/cache_dir/variables.tf
|
683
|
+
- spec/fixtures/dependencies/app/stacks/a1/tfvars/dev.tfvars
|
630
684
|
- spec/fixtures/fetcher/c1.json
|
631
685
|
- spec/fixtures/initialized/modules.json
|
632
686
|
- spec/fixtures/orphans/config/backend.rb
|
@@ -740,13 +794,18 @@ files:
|
|
740
794
|
- spec/terraspace/compiler/dsl/resource_spec.rb
|
741
795
|
- spec/terraspace/compiler/dsl/terraform_spec.rb
|
742
796
|
- spec/terraspace/compiler/dsl/variable_spec.rb
|
797
|
+
- spec/terraspace/compiler/erb/render_spec.rb
|
743
798
|
- spec/terraspace/dependency/graph_spec.rb
|
799
|
+
- spec/terraspace/dependency/helper/depends_on_spec.rb
|
800
|
+
- spec/terraspace/dependency/helper/output_spec.rb
|
801
|
+
- spec/terraspace/hooks/builder_spec.rb
|
744
802
|
- spec/terraspace/provider/expander/generic_spec.rb
|
745
803
|
- spec/terraspace/seeder/content_spec.rb
|
746
804
|
- spec/terraspace/seeder_spec.rb
|
747
805
|
- spec/terraspace/terraform/args/custom_spec.rb
|
748
|
-
- spec/terraspace/terraform/hooks/builder_spec.rb
|
749
806
|
- spec/terraspace/terraform/remote_state/fetcher_spec.rb
|
807
|
+
- spec/terraspace/terraform/remote_state/marker/output_spec.rb
|
808
|
+
- spec/terraspace/terraform/remote_state/output_proxy_spec.rb
|
750
809
|
- terraspace.gemspec
|
751
810
|
homepage: https://github.com/boltops-tools/terraspace
|
752
811
|
licenses:
|
@@ -774,6 +833,7 @@ summary: 'Terraspace: The Terraspace Framework'
|
|
774
833
|
test_files:
|
775
834
|
- spec/cli_spec.rb
|
776
835
|
- spec/fixtures/cache_dir/variables.tf
|
836
|
+
- spec/fixtures/dependencies/app/stacks/a1/tfvars/dev.tfvars
|
777
837
|
- spec/fixtures/fetcher/c1.json
|
778
838
|
- spec/fixtures/initialized/modules.json
|
779
839
|
- spec/fixtures/orphans/config/backend.rb
|
@@ -887,10 +947,15 @@ test_files:
|
|
887
947
|
- spec/terraspace/compiler/dsl/resource_spec.rb
|
888
948
|
- spec/terraspace/compiler/dsl/terraform_spec.rb
|
889
949
|
- spec/terraspace/compiler/dsl/variable_spec.rb
|
950
|
+
- spec/terraspace/compiler/erb/render_spec.rb
|
890
951
|
- spec/terraspace/dependency/graph_spec.rb
|
952
|
+
- spec/terraspace/dependency/helper/depends_on_spec.rb
|
953
|
+
- spec/terraspace/dependency/helper/output_spec.rb
|
954
|
+
- spec/terraspace/hooks/builder_spec.rb
|
891
955
|
- spec/terraspace/provider/expander/generic_spec.rb
|
892
956
|
- spec/terraspace/seeder/content_spec.rb
|
893
957
|
- spec/terraspace/seeder_spec.rb
|
894
958
|
- spec/terraspace/terraform/args/custom_spec.rb
|
895
|
-
- spec/terraspace/terraform/hooks/builder_spec.rb
|
896
959
|
- spec/terraspace/terraform/remote_state/fetcher_spec.rb
|
960
|
+
- spec/terraspace/terraform/remote_state/marker/output_spec.rb
|
961
|
+
- spec/terraspace/terraform/remote_state/output_proxy_spec.rb
|