seira 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/seira/jobs.rb +2 -1
- data/lib/seira/random.rb +13 -32
- data/lib/seira/version.rb +1 -1
- data/resources/adjectives.txt +377 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d13e90be6c49b6c588feb4e4f5ebd824eced2c816e889ee6b1a4902624a66493
|
|
4
|
+
data.tar.gz: 3681880d3d4d0e4e172c1951b177469e1ebba7328d32d3576633d8d4142c8fc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29da919be3b42250f0e6e7bc804570bfdef3700de147cffe2a4bed370b11ea1599ea1270b402e7c9314baaf9ecab4ffe694999fa73bdc5fd6e5efc2d5d2c0a21
|
|
7
|
+
data.tar.gz: b746c04b397f57f08ace72f133b4d9638d5a053037672ea518193c4929548170c22cd45bf6eee089c19bd8a007221c991c63bf68100044dab78e43c59da5a55a
|
data/lib/seira/jobs.rb
CHANGED
|
@@ -101,8 +101,9 @@ module Seira
|
|
|
101
101
|
args.shift
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
existing_job_names = kubectl("get jobs --output=jsonpath={.items..metadata.name}", context: context, clean_output: true, return_output: true).split(" ").map(&:strip).map { |name| name.gsub(/^#{app}-run-/, '') }
|
|
104
105
|
command = args.join(' ')
|
|
105
|
-
unique_name = "#{app}-run-#{Random.unique_name}"
|
|
106
|
+
unique_name = "#{app}-run-#{Random.unique_name(existing_job_names)}"
|
|
106
107
|
revision = gcp_app.ask_cluster_for_current_revision # TODO: Make more reliable, especially with no web tier
|
|
107
108
|
replacement_hash = {
|
|
108
109
|
'UNIQUE_NAME' => unique_name,
|
data/lib/seira/random.rb
CHANGED
|
@@ -1,43 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
require 'csv'
|
|
2
|
+
|
|
3
|
+
# For random names for building Jobs, pods, and other resources
|
|
2
4
|
module Seira
|
|
3
5
|
class Random
|
|
6
|
+
MAX_UNIQUE_NAME_ATTEMPTS = 10
|
|
7
|
+
|
|
4
8
|
def self.unique_name(existing = [])
|
|
9
|
+
attempts = 0
|
|
5
10
|
loop do
|
|
6
|
-
name = "#{
|
|
11
|
+
name = "#{adjective}-#{animal}"
|
|
12
|
+
attempts += 1
|
|
7
13
|
return name unless existing.include? name
|
|
14
|
+
fail "Too many failed unique name attempts" if attempts > MAX_UNIQUE_NAME_ATTEMPTS
|
|
8
15
|
end
|
|
9
16
|
end
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
blue
|
|
16
|
-
yellow
|
|
17
|
-
black
|
|
18
|
-
onyx
|
|
19
|
-
aqua
|
|
20
|
-
amber
|
|
21
|
-
violet
|
|
22
|
-
gray
|
|
23
|
-
tan
|
|
24
|
-
purple
|
|
25
|
-
white
|
|
26
|
-
pink
|
|
27
|
-
lime
|
|
28
|
-
orange
|
|
29
|
-
cherry
|
|
30
|
-
charcoal
|
|
31
|
-
coral
|
|
32
|
-
cyan
|
|
33
|
-
crimson
|
|
34
|
-
gold
|
|
35
|
-
silver
|
|
36
|
-
lemon
|
|
37
|
-
mustard
|
|
38
|
-
brown
|
|
39
|
-
tulip
|
|
40
|
-
].sample
|
|
18
|
+
# List sourced from https://www.mobap.edu/wp-content/uploads/2013/01/list_of_adjectives.pdf
|
|
19
|
+
def self.adjective
|
|
20
|
+
adjectives_lis_file = File.join(File.expand_path('../..', File.dirname(__FILE__)), 'resources', 'adjectives.txt')
|
|
21
|
+
CSV.open(adjectives_lis_file, "r").map(&:first).map(&:chomp).map(&:strip).sample
|
|
41
22
|
end
|
|
42
23
|
|
|
43
24
|
def self.animal
|
data/lib/seira/version.rb
CHANGED
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
abrupt
|
|
2
|
+
acidic
|
|
3
|
+
adorable
|
|
4
|
+
adventurous
|
|
5
|
+
aggressive
|
|
6
|
+
agitated
|
|
7
|
+
alert
|
|
8
|
+
aloof
|
|
9
|
+
amiable
|
|
10
|
+
amused
|
|
11
|
+
annoyed
|
|
12
|
+
antsy
|
|
13
|
+
anxious
|
|
14
|
+
appalling
|
|
15
|
+
appetizing
|
|
16
|
+
apprehensive
|
|
17
|
+
arrogant
|
|
18
|
+
ashamed
|
|
19
|
+
astonishing
|
|
20
|
+
attractive
|
|
21
|
+
average
|
|
22
|
+
batty
|
|
23
|
+
beefy
|
|
24
|
+
bewildered
|
|
25
|
+
biting
|
|
26
|
+
bitter
|
|
27
|
+
bland
|
|
28
|
+
blushing
|
|
29
|
+
bored
|
|
30
|
+
brave
|
|
31
|
+
bright
|
|
32
|
+
broad
|
|
33
|
+
bulky
|
|
34
|
+
burly
|
|
35
|
+
charming
|
|
36
|
+
cheeky
|
|
37
|
+
cheerful
|
|
38
|
+
chubby
|
|
39
|
+
clean
|
|
40
|
+
clear
|
|
41
|
+
cloudy
|
|
42
|
+
clueless
|
|
43
|
+
clumsy
|
|
44
|
+
colorful
|
|
45
|
+
colossal
|
|
46
|
+
combative
|
|
47
|
+
comfortable
|
|
48
|
+
condemned
|
|
49
|
+
condescending
|
|
50
|
+
confused
|
|
51
|
+
contemplative
|
|
52
|
+
convincing
|
|
53
|
+
convoluted
|
|
54
|
+
cooperative
|
|
55
|
+
corny
|
|
56
|
+
costly
|
|
57
|
+
courageous
|
|
58
|
+
crabby
|
|
59
|
+
creepy
|
|
60
|
+
crooked
|
|
61
|
+
cruel
|
|
62
|
+
cumbersome
|
|
63
|
+
curved
|
|
64
|
+
cynical
|
|
65
|
+
dangerous
|
|
66
|
+
dashing
|
|
67
|
+
decayed
|
|
68
|
+
deceitful
|
|
69
|
+
deep
|
|
70
|
+
defeated
|
|
71
|
+
defiant
|
|
72
|
+
delicious
|
|
73
|
+
delightful
|
|
74
|
+
depraved
|
|
75
|
+
depressed
|
|
76
|
+
despicable
|
|
77
|
+
determined
|
|
78
|
+
dilapidated
|
|
79
|
+
diminutive
|
|
80
|
+
disgusted
|
|
81
|
+
distinct
|
|
82
|
+
distraught
|
|
83
|
+
distressed
|
|
84
|
+
disturbed
|
|
85
|
+
dizzy
|
|
86
|
+
drab
|
|
87
|
+
drained
|
|
88
|
+
dull
|
|
89
|
+
eager
|
|
90
|
+
ecstatic
|
|
91
|
+
elated
|
|
92
|
+
elegant
|
|
93
|
+
emaciated
|
|
94
|
+
embarrassed
|
|
95
|
+
enchanting
|
|
96
|
+
encouraging
|
|
97
|
+
energetic
|
|
98
|
+
enormous
|
|
99
|
+
enthusiastic
|
|
100
|
+
envious
|
|
101
|
+
exasperated
|
|
102
|
+
excited
|
|
103
|
+
exhilarated
|
|
104
|
+
extensive
|
|
105
|
+
exuberant
|
|
106
|
+
fancy
|
|
107
|
+
fantastic
|
|
108
|
+
fierce
|
|
109
|
+
filthy
|
|
110
|
+
flat
|
|
111
|
+
floppy
|
|
112
|
+
fluttering
|
|
113
|
+
foolish
|
|
114
|
+
frantic
|
|
115
|
+
fresh
|
|
116
|
+
friendly
|
|
117
|
+
frightened
|
|
118
|
+
frothy
|
|
119
|
+
frustrating
|
|
120
|
+
funny
|
|
121
|
+
fuzzy
|
|
122
|
+
gaudy
|
|
123
|
+
gentle
|
|
124
|
+
ghastly
|
|
125
|
+
giddy
|
|
126
|
+
gigantic
|
|
127
|
+
glamorous
|
|
128
|
+
gleaming
|
|
129
|
+
glorious
|
|
130
|
+
gorgeous
|
|
131
|
+
graceful
|
|
132
|
+
greasy
|
|
133
|
+
grieving
|
|
134
|
+
gritty
|
|
135
|
+
grotesque
|
|
136
|
+
grubby
|
|
137
|
+
grumpy
|
|
138
|
+
handsome
|
|
139
|
+
happy
|
|
140
|
+
harebrained
|
|
141
|
+
healthy
|
|
142
|
+
helpful
|
|
143
|
+
helpless
|
|
144
|
+
high
|
|
145
|
+
hollow
|
|
146
|
+
homely
|
|
147
|
+
horrific
|
|
148
|
+
huge
|
|
149
|
+
hungry
|
|
150
|
+
hurt
|
|
151
|
+
icy
|
|
152
|
+
ideal
|
|
153
|
+
immense
|
|
154
|
+
impressionable
|
|
155
|
+
intrigued
|
|
156
|
+
irate
|
|
157
|
+
irritable
|
|
158
|
+
itchy
|
|
159
|
+
jealous
|
|
160
|
+
jittery
|
|
161
|
+
jolly
|
|
162
|
+
joyous
|
|
163
|
+
filthy
|
|
164
|
+
flat
|
|
165
|
+
floppy
|
|
166
|
+
fluttering
|
|
167
|
+
foolish
|
|
168
|
+
frantic
|
|
169
|
+
fresh
|
|
170
|
+
friendly
|
|
171
|
+
frightened
|
|
172
|
+
frothy
|
|
173
|
+
frustrating
|
|
174
|
+
funny
|
|
175
|
+
fuzzy
|
|
176
|
+
gaudy
|
|
177
|
+
gentle
|
|
178
|
+
ghastly
|
|
179
|
+
giddy
|
|
180
|
+
gigantic
|
|
181
|
+
glamorous
|
|
182
|
+
gleaming
|
|
183
|
+
glorious
|
|
184
|
+
gorgeous
|
|
185
|
+
graceful
|
|
186
|
+
greasy
|
|
187
|
+
grieving
|
|
188
|
+
gritty
|
|
189
|
+
grotesque
|
|
190
|
+
grubby
|
|
191
|
+
grumpy
|
|
192
|
+
handsome
|
|
193
|
+
happy
|
|
194
|
+
harebrained
|
|
195
|
+
healthy
|
|
196
|
+
helpful
|
|
197
|
+
helpless
|
|
198
|
+
high
|
|
199
|
+
hollow
|
|
200
|
+
homely
|
|
201
|
+
horrific
|
|
202
|
+
huge
|
|
203
|
+
hungry
|
|
204
|
+
hurt
|
|
205
|
+
icy
|
|
206
|
+
ideal
|
|
207
|
+
immense
|
|
208
|
+
impressionable
|
|
209
|
+
intrigued
|
|
210
|
+
irate
|
|
211
|
+
irritable
|
|
212
|
+
itchy
|
|
213
|
+
jealous
|
|
214
|
+
jittery
|
|
215
|
+
jolly
|
|
216
|
+
joyous
|
|
217
|
+
juicy
|
|
218
|
+
jumpy
|
|
219
|
+
kind
|
|
220
|
+
lackadaisical
|
|
221
|
+
large
|
|
222
|
+
lazy
|
|
223
|
+
lethal
|
|
224
|
+
little
|
|
225
|
+
lively
|
|
226
|
+
livid
|
|
227
|
+
lonely
|
|
228
|
+
loose
|
|
229
|
+
lovely
|
|
230
|
+
lucky
|
|
231
|
+
ludicrous
|
|
232
|
+
macho
|
|
233
|
+
magnificent
|
|
234
|
+
mammoth
|
|
235
|
+
maniacal
|
|
236
|
+
massive
|
|
237
|
+
melancholy
|
|
238
|
+
melted
|
|
239
|
+
miniature
|
|
240
|
+
minute
|
|
241
|
+
mistaken
|
|
242
|
+
misty
|
|
243
|
+
moody
|
|
244
|
+
mortified
|
|
245
|
+
motionless
|
|
246
|
+
muddy
|
|
247
|
+
mysterious
|
|
248
|
+
narrow
|
|
249
|
+
nasty
|
|
250
|
+
nervous
|
|
251
|
+
nonchalant
|
|
252
|
+
nonsensical
|
|
253
|
+
nutritious
|
|
254
|
+
nutty
|
|
255
|
+
obedient
|
|
256
|
+
oblivious
|
|
257
|
+
obnoxious
|
|
258
|
+
odd
|
|
259
|
+
old-fashioned
|
|
260
|
+
outrageous
|
|
261
|
+
panicky
|
|
262
|
+
perfect
|
|
263
|
+
perplexed
|
|
264
|
+
petite
|
|
265
|
+
petty
|
|
266
|
+
plain
|
|
267
|
+
pleasant
|
|
268
|
+
poised
|
|
269
|
+
pompous
|
|
270
|
+
precious
|
|
271
|
+
prickly
|
|
272
|
+
proud
|
|
273
|
+
pungent
|
|
274
|
+
puny
|
|
275
|
+
quaint
|
|
276
|
+
quizzical
|
|
277
|
+
ratty
|
|
278
|
+
reassured
|
|
279
|
+
relieved
|
|
280
|
+
repulsive
|
|
281
|
+
responsive
|
|
282
|
+
ripe
|
|
283
|
+
robust
|
|
284
|
+
rotten
|
|
285
|
+
rotund
|
|
286
|
+
rough
|
|
287
|
+
round
|
|
288
|
+
salty
|
|
289
|
+
sarcastic
|
|
290
|
+
scant
|
|
291
|
+
scary
|
|
292
|
+
scattered
|
|
293
|
+
scrawny
|
|
294
|
+
selfish
|
|
295
|
+
shaggy
|
|
296
|
+
shaky
|
|
297
|
+
shallow
|
|
298
|
+
sharp
|
|
299
|
+
shiny
|
|
300
|
+
short
|
|
301
|
+
silky
|
|
302
|
+
silly
|
|
303
|
+
skinny
|
|
304
|
+
slimy
|
|
305
|
+
slippery
|
|
306
|
+
small
|
|
307
|
+
smarmy
|
|
308
|
+
smiling
|
|
309
|
+
smoggy
|
|
310
|
+
smooth
|
|
311
|
+
smug
|
|
312
|
+
soggy
|
|
313
|
+
solid
|
|
314
|
+
sore
|
|
315
|
+
sour
|
|
316
|
+
sparkling
|
|
317
|
+
spicy
|
|
318
|
+
splendid
|
|
319
|
+
spotless
|
|
320
|
+
square
|
|
321
|
+
stale
|
|
322
|
+
steady
|
|
323
|
+
steep
|
|
324
|
+
responsive
|
|
325
|
+
sticky
|
|
326
|
+
stormy
|
|
327
|
+
stout
|
|
328
|
+
straight
|
|
329
|
+
strange
|
|
330
|
+
strong
|
|
331
|
+
stunning
|
|
332
|
+
substantial
|
|
333
|
+
successful
|
|
334
|
+
succulent
|
|
335
|
+
superficial
|
|
336
|
+
superior
|
|
337
|
+
swanky
|
|
338
|
+
sweet
|
|
339
|
+
tart
|
|
340
|
+
tasty
|
|
341
|
+
teeny
|
|
342
|
+
tender
|
|
343
|
+
tense
|
|
344
|
+
terrible
|
|
345
|
+
testy
|
|
346
|
+
thankful
|
|
347
|
+
thick
|
|
348
|
+
thoughtful
|
|
349
|
+
thoughtless
|
|
350
|
+
tight
|
|
351
|
+
timely
|
|
352
|
+
tricky
|
|
353
|
+
trite
|
|
354
|
+
troubled
|
|
355
|
+
uneven
|
|
356
|
+
unsightly
|
|
357
|
+
upset
|
|
358
|
+
uptight
|
|
359
|
+
vast
|
|
360
|
+
vexed
|
|
361
|
+
victorious
|
|
362
|
+
virtuous
|
|
363
|
+
vivacious
|
|
364
|
+
vivid
|
|
365
|
+
wacky
|
|
366
|
+
weary
|
|
367
|
+
whimsical
|
|
368
|
+
whopping
|
|
369
|
+
wicked
|
|
370
|
+
witty
|
|
371
|
+
wobbly
|
|
372
|
+
wonderful
|
|
373
|
+
worried
|
|
374
|
+
yummy
|
|
375
|
+
zany
|
|
376
|
+
zealous
|
|
377
|
+
zippy
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seira
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Ringwelski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: highline
|
|
@@ -137,6 +137,7 @@ files:
|
|
|
137
137
|
- lib/seira/setup.rb
|
|
138
138
|
- lib/seira/util/resource_renderer.rb
|
|
139
139
|
- lib/seira/version.rb
|
|
140
|
+
- resources/adjectives.txt
|
|
140
141
|
- seira.gemspec
|
|
141
142
|
homepage: https://github.com/joinhandshake/seira
|
|
142
143
|
licenses:
|