ev_job_gen 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/kubernetes/tmpl/spec_template.yml.erb +1 -0
- data/lib/ev_job_gen/job.rb +11 -1
- data/lib/ev_job_gen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '085cb7ea8fc4dfe21cb99b4554be51ba8792748fbb431fe72932d86e6358fdff'
|
4
|
+
data.tar.gz: 68a29a3f53fb69dcd85a248cad860c3a53e60656596b6f8f7781b6074afc0a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28df46930e6a1346de9ccf168cd77fc15a11b74e183d12f97fd59bed79cd142ca77c26b929fd2e76f5cedf9cc0b73df3b2d62f525e6d744b295448b2563ed784
|
7
|
+
data.tar.gz: 1fdc9edc312ba226e98f0e7ab21acca3729e0a5c60d078ca54560d2f8d309d3edd92961fd55f5c864db824e0b282936eac6a727c3bf2fefb8b4f071c7452dfb4
|
data/Gemfile.lock
CHANGED
@@ -14,6 +14,7 @@ containers:
|
|
14
14
|
export AWS_SECRET_ACCESS_KEY=<%= ENV['AWS_SECRET_ACCESS_KEY'] %>;
|
15
15
|
export AWS_REGION=<%= ENV['AWS_REGION'] %>;
|
16
16
|
|
17
|
+
<%= job.setup_wget %>;
|
17
18
|
wget https://github.com/wantedly/ev-cli/releases/download/v1.2.3/ev-v1.2.3-linux-amd64.tar.gz;
|
18
19
|
tar xvzf ev-v1.2.3-linux-amd64.tar.gz;
|
19
20
|
cp linux-amd64/ev ev;
|
data/lib/ev_job_gen/job.rb
CHANGED
@@ -13,12 +13,22 @@ module EvJobGen
|
|
13
13
|
@out = h["out"]
|
14
14
|
@metrics = h["metrics"]
|
15
15
|
@commithash = h["commithash"]
|
16
|
+
@setup_wget = h["setup_wget"] # NOTE: this is optional
|
16
17
|
|
17
18
|
# NOTE: suffix is used only for oneshot job
|
18
19
|
@suffix = 5.times.map { CHARS.sample }.join
|
19
20
|
end
|
20
21
|
|
21
|
-
attr_reader
|
22
|
+
attr_reader(
|
23
|
+
:namespace,
|
24
|
+
:image,
|
25
|
+
:command,
|
26
|
+
:out,
|
27
|
+
:metrics,
|
28
|
+
:commithash,
|
29
|
+
:setup_wget,
|
30
|
+
:suffix,
|
31
|
+
)
|
22
32
|
|
23
33
|
private
|
24
34
|
|
data/lib/ev_job_gen/version.rb
CHANGED