envirobly 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2750aa4a83c0407fbba1c7db3aa5b7cebaa6ea08fd2112064a4c6c5d88aad4c
4
- data.tar.gz: 464b4a65da73a81d6a62c1f2fa35f4dd927bd790e16cc3f0f58e3d1048e0d87c
3
+ metadata.gz: 6226263c06257afa2005e3f2294d191e2c94f3984945373425279c52093bc39b
4
+ data.tar.gz: d5a51f52257f763c81419d62fc75fde808a4499fdfc7f9fc1847190f5771c55c
5
5
  SHA512:
6
- metadata.gz: '09321732787c09ee02ca9c4071fb916930db737f07dee8a2cd0ffe482620f3f61586a01d796df4a8452b5c7e2b4f6186e8f9ad7ad9feb633f2f5135c5ce7aefb'
7
- data.tar.gz: 44513ce52f34fef1310f54095589dec1ab05a0233c1a16f77309ebc9c3cbce2cacf1dea70b01a63fafeab26ae7005de6b9ecb46e8d6b25aa6d938d8e939bcc81
6
+ metadata.gz: 4a426ce35d69e3b38f3873d5181e0f57601d8404bf08f30cfb1e8e32728fb753d5ebfcfcbd328365ece306358d2efc77c3b61e05006e92a5c31711560805e67d
7
+ data.tar.gz: 0b48b6e836a7ee0c9449dbc1b61a2462030b2bd3420132f955d449d70ee3017544350a580208d539a4bebeb18faff161c8da908c4ddc3eaf03d8b08d8b0e0424
@@ -36,7 +36,6 @@ class Envirobly::Config
36
36
  @result = @project.slice(:services)
37
37
  set_project_url
38
38
  merge_environment_overrides! unless @environment.nil?
39
- transform_env_var_values!
40
39
  append_image_tags!
41
40
  end
42
41
 
@@ -68,16 +67,6 @@ class Envirobly::Config
68
67
  @project_url = dig :project
69
68
  end
70
69
 
71
- def transform_env_var_values!
72
- @result[:services].each do |name, service|
73
- service.fetch(:env, {}).each do |key, value|
74
- if value.is_a?(Hash) && value.has_key?(:file)
75
- @result[:services][name][:env][key] = @commit.file_content(value.fetch(:file)).strip
76
- end
77
- end
78
- end
79
- end
80
-
81
70
  NON_BUILDABLE_TYPES = %w[ postgres mysql valkey ]
82
71
  BUILD_DEFAULTS = {
83
72
  dockerfile: [ "Dockerfile", :file_exists? ],
@@ -136,17 +125,20 @@ class Envirobly::Config
136
125
  image
137
126
  engine_version
138
127
  instance_type
128
+ min_instances
129
+ max_instances
139
130
  volume_size
140
131
  volume_mount
141
132
  dockerfile
142
133
  build_context
143
134
  command
135
+ release_command
144
136
  env
145
137
  health_check
146
138
  private
147
139
  aliases
148
140
  ]
149
- NAME_FORMAT = /\A[a-z0-9\-_]+\z/
141
+ NAME_FORMAT = /\A[a-z0-9\-_\.\/]+\z/i
150
142
  def validate_services(services)
151
143
  unless services.is_a?(Hash)
152
144
  @errors << "`services` key must be a hash."
@@ -155,7 +147,7 @@ class Envirobly::Config
155
147
 
156
148
  services.each do |name, service|
157
149
  unless name =~ NAME_FORMAT
158
- @errors << "`#{name}` is not a valid service name. Allowed characters: a-z, 0-9, -, _"
150
+ @errors << "`#{name}` is not a valid service name. Use aplhanumeric characters, dash, underscore, slash or dot."
159
151
  end
160
152
 
161
153
  unless service.is_a?(Hash)
@@ -198,7 +190,7 @@ class Envirobly::Config
198
190
 
199
191
  environments.each do |environment, services|
200
192
  unless environment =~ NAME_FORMAT
201
- @errors << "`#{environment}` is not a valid environment name. Allowed characters: a-z, 0-9, -, _"
193
+ @errors << "`#{environment}` is not a valid environment name. Use aplhanumeric characters, dash, underscore, slash or dot."
202
194
  end
203
195
 
204
196
  validate_services services
@@ -1,3 +1,3 @@
1
1
  module Envirobly
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.0
4
+ version: 0.7.0
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-09-23 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: mocha
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: activesupport
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  requirements: []
154
- rubygems_version: 3.5.18
168
+ rubygems_version: 3.5.20
155
169
  signing_key:
156
170
  specification_version: 4
157
171
  summary: Envirobly command line interface