envirobly 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/envirobly/config.rb +9 -0
- data/lib/envirobly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1ffc05f7ea0f1e40889fa8a817bd44f9cf9fc3ee4d7197e48f46bd17706b017
|
4
|
+
data.tar.gz: 053373d7435caa5b10d301afafd3ef76777f29bffb59c108cd6ef4399d666061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0d071e480b64d91210ae0eb422d29707950c3288ca7e8a85354bfbaff1e78bec44e0bb88606edf264aab94bf2478e85fd6a85fba1f920e2b028c55c457bdc3b
|
7
|
+
data.tar.gz: ee38e1c77c0b66b90d4b36d3c89a217caef7f71f1e9c34d32ac4731eba898b265519e018501a5d5ebe41f644ca5e8534e04cf07b4ef5afa592595f60ddd5f453
|
data/lib/envirobly/config.rb
CHANGED
@@ -123,6 +123,7 @@ class Envirobly::Config
|
|
123
123
|
VALID_SERVICE_KEYS = %i[
|
124
124
|
type
|
125
125
|
image
|
126
|
+
build
|
126
127
|
engine_version
|
127
128
|
instance_type
|
128
129
|
min_instances
|
@@ -135,10 +136,12 @@ class Envirobly::Config
|
|
135
136
|
release_command
|
136
137
|
env
|
137
138
|
health_check
|
139
|
+
http
|
138
140
|
private
|
139
141
|
aliases
|
140
142
|
]
|
141
143
|
NAME_FORMAT = /\A[a-z0-9\-_\.\/]+\z/i
|
144
|
+
BUILD_VALUE_FORMAT = /\Av[\d+]\z/
|
142
145
|
def validate_services(services)
|
143
146
|
unless services.is_a?(Hash)
|
144
147
|
@errors << "`services` key must be a hash."
|
@@ -159,6 +162,12 @@ class Envirobly::Config
|
|
159
162
|
unless VALID_SERVICE_KEYS.include?(attribute)
|
160
163
|
@errors << "Service `#{name}` attribute `#{attribute}` is not a valid attribute."
|
161
164
|
end
|
165
|
+
|
166
|
+
if attribute == :build
|
167
|
+
unless value =~ BUILD_VALUE_FORMAT
|
168
|
+
@errors << "Service `#{name}` attribute `#{attribute}` format needs to be a number prefixed with letter \"v\", for example \"v1\"."
|
169
|
+
end
|
170
|
+
end
|
162
171
|
end
|
163
172
|
|
164
173
|
BUILD_DEFAULTS.each do |attribute, options|
|
data/lib/envirobly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envirobly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Starsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
|
-
rubygems_version: 3.5.
|
168
|
+
rubygems_version: 3.5.22
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Envirobly command line interface
|