pfab 0.49.0 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pfab/templates/base.rb +22 -0
- data/lib/pfab/templates/daemon.rb +1 -0
- data/lib/pfab/templates/web.rb +1 -11
- data/lib/pfab/version.rb +1 -1
- data/pfab.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843d834bac5fcac5a8761c3571769bdfddfbe675b437c053c73f51ac5de2be5e
|
4
|
+
data.tar.gz: 71d5523cf8f3fbdd3ac10775f16b75c25b36d427bce36d86f078a36c7d39b9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7154a5cf912a6f890f4b4442942655a06a9d37dbcb1c53d0d0db55c1f752048ce5d47663e4b00ae79f0bcd4fe7dac4c744a086c91974337a672f2f89c49c1518
|
7
|
+
data.tar.gz: b31ca987ad5f375d4f9d24ce253c42455a6d8ec8da2592885496d8f3066baef1f220c5dabdad7175f6b55ec0d3ae43be6ce5d359059d1ba5affa004cdd209fbd
|
data/lib/pfab/templates/base.rb
CHANGED
@@ -125,6 +125,28 @@ module Pfab
|
|
125
125
|
} }
|
126
126
|
end
|
127
127
|
end
|
128
|
+
|
129
|
+
|
130
|
+
def container_ports
|
131
|
+
ports = []
|
132
|
+
if app_vars["port"]
|
133
|
+
ports.append ({
|
134
|
+
name: "main",
|
135
|
+
containerPort: app_vars["port"]
|
136
|
+
})
|
137
|
+
end
|
138
|
+
%w[additionalPorts containerPorts].each do |key|
|
139
|
+
if get(key)
|
140
|
+
get(key).each do |name, number|
|
141
|
+
ports.append(
|
142
|
+
{name: name, containerPort: number}
|
143
|
+
)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
return ports
|
149
|
+
end
|
128
150
|
end
|
129
151
|
end
|
130
152
|
end
|
data/lib/pfab/templates/web.rb
CHANGED
@@ -251,17 +251,7 @@ module Pfab
|
|
251
251
|
readOnly: true
|
252
252
|
)
|
253
253
|
end
|
254
|
-
ports =
|
255
|
-
name: "main",
|
256
|
-
containerPort: app_vars["port"]
|
257
|
-
}]
|
258
|
-
if get("additionalPorts")
|
259
|
-
get("additionalPorts").each do |name, number|
|
260
|
-
ports.append(
|
261
|
-
{name: name, containerPort: number}
|
262
|
-
)
|
263
|
-
end
|
264
|
-
end
|
254
|
+
ports = container_ports()
|
265
255
|
|
266
256
|
{
|
267
257
|
kind: "Deployment",
|
data/lib/pfab/version.rb
CHANGED
data/pfab.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: pfab 0.
|
5
|
+
# stub: pfab 0.50.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "pfab".freeze
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.50.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Jeff Dwyer".freeze]
|
14
|
-
s.date = "2024-
|
14
|
+
s.date = "2024-05-06"
|
15
15
|
s.description = "k8s helper".freeze
|
16
16
|
s.email = "jdwyer@prefab.cloud".freeze
|
17
17
|
s.executables = ["pfab".freeze]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pfab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.50.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Dwyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|