pangea-component-network 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -12
- data/Gemfile.lock +3 -52
- data/lib/{pangea/component/network → pangea-component-network}/version.rb +1 -1
- data/lib/pangea-component-network.rb +27 -0
- data/pangea-component-network.gemspec +2 -2
- data/resources/vpc.rb +3 -0
- metadata +5 -4
- data/lib/pangea/component/network/entrypoint.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ff371dbc841347d6c797bd00444bca8b8ac08c3b1d000eec4511b185f3e6e3e
|
4
|
+
data.tar.gz: 40eff7f0108226de3ab854832a5a1cf9c61bb7dacdd97f693c748c08cd1821b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db7f678999ed979cc3f662e4864e6a86230ab170d68882a4ed38554daeb43021475b96258edfb237a6dbd74b166acc257797d8e6e9db699dc20858210dc72152
|
7
|
+
data.tar.gz: 4a1afd4b9d41f5a5d19fb9bdd96ccc9e6a31bfbf756de7c8f76e2b652746d11a3ba17c029758e8c5e2db8e3bccb2b11ac89aa0655b3e3187c61ec1fa5ad1a7fe
|
data/Gemfile
CHANGED
@@ -14,18 +14,7 @@ group :development do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
group :production do
|
17
|
-
%w[
|
18
|
-
aws-sdk-dynamodb
|
19
|
-
terraform-synthesizer
|
20
|
-
abstract-synthesizer
|
21
|
-
tty-progressbar
|
22
|
-
tty-option
|
23
|
-
tty-table
|
24
|
-
tty-color
|
25
|
-
tty-box
|
26
|
-
toml-rb
|
27
|
-
bundler
|
28
|
-
].each do |this_gem|
|
17
|
+
%w[terraform-synthesizer].each do |this_gem|
|
29
18
|
gem this_gem
|
30
19
|
end
|
31
20
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,23 +1,9 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
abstract-synthesizer (0.0.
|
4
|
+
abstract-synthesizer (0.0.3)
|
5
5
|
ast (2.4.2)
|
6
|
-
aws-eventstream (1.3.0)
|
7
|
-
aws-partitions (1.856.0)
|
8
|
-
aws-sdk-core (3.188.0)
|
9
|
-
aws-eventstream (~> 1, >= 1.0.2)
|
10
|
-
aws-partitions (~> 1, >= 1.651.0)
|
11
|
-
aws-sigv4 (~> 1.5)
|
12
|
-
jmespath (~> 1, >= 1.6.1)
|
13
|
-
aws-sdk-dynamodb (1.97.0)
|
14
|
-
aws-sdk-core (~> 3, >= 3.188.0)
|
15
|
-
aws-sigv4 (~> 1.1)
|
16
|
-
aws-sigv4 (1.7.0)
|
17
|
-
aws-eventstream (~> 1, >= 1.0.2)
|
18
|
-
citrus (3.0.2)
|
19
6
|
diff-lcs (1.5.0)
|
20
|
-
jmespath (1.6.2)
|
21
7
|
json (2.6.3)
|
22
8
|
keycutter (1.0.2)
|
23
9
|
language_server-protocol (3.17.0.3)
|
@@ -25,8 +11,6 @@ GEM
|
|
25
11
|
parser (3.2.2.4)
|
26
12
|
ast (~> 2.4.1)
|
27
13
|
racc
|
28
|
-
pastel (0.8.0)
|
29
|
-
tty-color (~> 0.5)
|
30
14
|
racc (1.7.3)
|
31
15
|
rainbow (3.1.1)
|
32
16
|
rake (13.1.0)
|
@@ -69,54 +53,21 @@ GEM
|
|
69
53
|
rubocop-capybara (~> 2.17)
|
70
54
|
rubocop-factory_bot (~> 2.22)
|
71
55
|
ruby-progressbar (1.13.0)
|
72
|
-
|
73
|
-
|
74
|
-
unicode-display_width (>= 1.5, < 3.0)
|
75
|
-
unicode_utils (~> 1.4)
|
76
|
-
strings-ansi (0.2.0)
|
77
|
-
terraform-synthesizer (0.0.2)
|
78
|
-
toml-rb (2.2.0)
|
79
|
-
citrus (~> 3.0, > 3.0)
|
80
|
-
tty-box (0.7.0)
|
81
|
-
pastel (~> 0.8)
|
82
|
-
strings (~> 0.2.0)
|
83
|
-
tty-cursor (~> 0.7)
|
84
|
-
tty-color (0.6.0)
|
85
|
-
tty-cursor (0.7.1)
|
86
|
-
tty-option (0.3.0)
|
87
|
-
tty-progressbar (0.18.2)
|
88
|
-
strings-ansi (~> 0.2)
|
89
|
-
tty-cursor (~> 0.7)
|
90
|
-
tty-screen (~> 0.8)
|
91
|
-
unicode-display_width (>= 1.6, < 3.0)
|
92
|
-
tty-screen (0.8.1)
|
93
|
-
tty-table (0.12.0)
|
94
|
-
pastel (~> 0.8)
|
95
|
-
strings (~> 0.2.0)
|
96
|
-
tty-screen (~> 0.8)
|
56
|
+
terraform-synthesizer (0.0.4)
|
57
|
+
abstract-synthesizer
|
97
58
|
unicode-display_width (2.5.0)
|
98
|
-
unicode_utils (1.4.0)
|
99
59
|
yard (0.9.34)
|
100
60
|
|
101
61
|
PLATFORMS
|
102
62
|
x86_64-linux
|
103
63
|
|
104
64
|
DEPENDENCIES
|
105
|
-
abstract-synthesizer
|
106
|
-
aws-sdk-dynamodb
|
107
|
-
bundler
|
108
65
|
keycutter
|
109
66
|
rake
|
110
67
|
rspec
|
111
68
|
rubocop-rake
|
112
69
|
rubocop-rspec
|
113
70
|
terraform-synthesizer
|
114
|
-
toml-rb
|
115
|
-
tty-box
|
116
|
-
tty-color
|
117
|
-
tty-option
|
118
|
-
tty-progressbar
|
119
|
-
tty-table
|
120
71
|
yard
|
121
72
|
|
122
73
|
BUNDLED WITH
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require %(terraform-synthesizer)
|
2
|
+
require %(json)
|
3
|
+
|
4
|
+
def symbolize(hash)
|
5
|
+
JSON[JSON[hash], symbolize_names: true]
|
6
|
+
end
|
7
|
+
|
8
|
+
################################################################################
|
9
|
+
# external entities call render with data
|
10
|
+
# render implements the synthesizer and processes
|
11
|
+
# internal module with data
|
12
|
+
################################################################################
|
13
|
+
|
14
|
+
def render(data)
|
15
|
+
synth = TerraformSynthesizer.new
|
16
|
+
current_file_directory = File.dirname(File.expand_path(__FILE__))
|
17
|
+
vpc_file_path = File.join(
|
18
|
+
current_file_directory,
|
19
|
+
'../',
|
20
|
+
'resources',
|
21
|
+
'vpc.rb'
|
22
|
+
)
|
23
|
+
vpc_content = File.read(vpc_file_path)
|
24
|
+
synth.load_synthesis_data(data)
|
25
|
+
synth.synthesize(vpc_content)
|
26
|
+
synth.synthesis
|
27
|
+
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
lib = File.expand_path(%(lib), __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require_relative %(./lib/pangea
|
5
|
+
require_relative %(./lib/pangea-component-network/version)
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = %(pangea-component-network)
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = %(network components)
|
14
14
|
spec.homepage = %(https://github.com/drzln/#{spec.name})
|
15
15
|
spec.license = %(MIT)
|
16
|
-
spec.require_paths = [%(lib)]
|
16
|
+
spec.require_paths = [%(lib resources)]
|
17
17
|
spec.required_ruby_version = %(>= #{`cat .ruby-version`})
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
data/resources/vpc.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pangea-component-network
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- drzthslnt@gmail.com
|
@@ -152,9 +152,10 @@ files:
|
|
152
152
|
- LICENSE
|
153
153
|
- README.md
|
154
154
|
- Rakefile
|
155
|
-
- lib/pangea
|
156
|
-
- lib/pangea
|
155
|
+
- lib/pangea-component-network.rb
|
156
|
+
- lib/pangea-component-network/version.rb
|
157
157
|
- pangea-component-network.gemspec
|
158
|
+
- resources/vpc.rb
|
158
159
|
homepage: https://github.com/drzln/pangea-component-network
|
159
160
|
licenses:
|
160
161
|
- MIT
|
@@ -163,7 +164,7 @@ metadata:
|
|
163
164
|
post_install_message:
|
164
165
|
rdoc_options: []
|
165
166
|
require_paths:
|
166
|
-
- lib
|
167
|
+
- lib resources
|
167
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
168
169
|
requirements:
|
169
170
|
- - ">="
|