cuber 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cuber/cuberfile_parser.rb +2 -2
- data/lib/cuber/cuberfile_validator.rb +1 -0
- data/lib/cuber/templates/deployment.yml.erb +1 -0
- data/lib/cuber/version.rb +1 -1
- 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: f3c3f1360d10e9b55b0c4f0834d8b63b1ff3c633c6494614be9eca6fd7a5a4d2
|
4
|
+
data.tar.gz: b86d180914c922da1dea746b4a741b266048a4aa0209ca3c5276e22f2bf901fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36c76161ea6ec606cb59afc2cd3d8d3c8506579e66520e314f4aff882367a9e736f53b77cc93c1b603af55eef18c78ae04f799c8f2bcd35cdfc3522284ffd54a
|
7
|
+
data.tar.gz: 56c369603b1780f64b8ec38d335f5628044067875c186f03e930769678fef358e2de8b31dd5c63766b65e8f42ee921b50e5bfd28ec96213758aef779086755c6
|
@@ -64,8 +64,8 @@ module Cuber
|
|
64
64
|
@migrate = { cmd: cmd, check: check }
|
65
65
|
end
|
66
66
|
|
67
|
-
def proc name, cmd, scale: 1, env: {}
|
68
|
-
@procs[name] = { cmd: cmd, scale: scale, env: env }
|
67
|
+
def proc name, cmd, scale: 1, term: 60, env: {}
|
68
|
+
@procs[name] = { cmd: cmd, scale: scale, term: term, env: env }
|
69
69
|
end
|
70
70
|
|
71
71
|
def cron name, schedule, cmd
|
@@ -81,6 +81,7 @@ module Cuber
|
|
81
81
|
@errors << "proc \"#{procname}\" name can only include lowercase letters" if procname !~ /\A[a-z]+\z/
|
82
82
|
@errors << "proc \"#{procname}\" command must be present" if proc[:cmd].to_s.strip.empty?
|
83
83
|
@errors << "proc \"#{procname}\" scale must be a positive number" unless proc[:scale].is_a?(Integer) && proc[:scale] > 0
|
84
|
+
@errors << "proc \"#{procname}\" term must be a positive number" unless proc[:term].is_a?(Integer) && proc[:term] > 0
|
84
85
|
proc[:env].each do |key, value|
|
85
86
|
@errors << "proc \"#{procname}\" env name can only include uppercase letters, digits or underscores" if key !~ /\A[A-Z_]+[A-Z0-9_]*\z/
|
86
87
|
end
|
data/lib/cuber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cuber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|