prima-twig 0.34.7 → 0.34.126
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/twig-build +2294 -0
- data/bin/twig-deploy +38 -75
- data/bin/twig-feature +297 -1592
- data/bin/twig-update-ami +100 -156
- data/lib/prima_aws_client.rb +267 -31
- data/lib/prima_twig.rb +5 -3
- metadata +119 -5
data/lib/prima_twig.rb
CHANGED
@@ -4,7 +4,7 @@ require 'octokit'
|
|
4
4
|
require 'yaml'
|
5
5
|
require 'rugged'
|
6
6
|
require 'highline/import'
|
7
|
-
require 'aws-sdk'
|
7
|
+
require 'aws-sdk-core'
|
8
8
|
require 'rubyflare'
|
9
9
|
|
10
10
|
class Prima
|
@@ -13,14 +13,16 @@ class Prima
|
|
13
13
|
LABEL_HOTFIX='hotfix'
|
14
14
|
LABEL_NEXT_RELEASE='next release'
|
15
15
|
LABEL_IN_STAGING='in staging'
|
16
|
-
CONFIG_KEYS=['github', 'mandrill', 'sparkpost', 'cloudflare_email', 'cloudflare_apikey', 'aws_username', 'aws_password']
|
16
|
+
CONFIG_KEYS=['github', 'mandrill', 'sparkpost', 'cloudflare_email', 'cloudflare_apikey', 'aws_username', 'aws_password', 'prima_apikey']
|
17
17
|
attr_reader :gh, :twig, :config, :rugged, :aws
|
18
18
|
|
19
19
|
def initialize
|
20
20
|
@twig = Twig.new(:read_options => true, :max_days_old => 30)
|
21
21
|
unless has_config?
|
22
22
|
if File.exist?('../prima/twig.yml')
|
23
|
-
|
23
|
+
`cp ../prima/twig.yml .`
|
24
|
+
elsif File.exist?('/tmp/twig.yml')
|
25
|
+
`cp /tmp/twig.yml .`
|
24
26
|
else
|
25
27
|
generate_config
|
26
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prima-twig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.126
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -10,13 +10,126 @@ authors:
|
|
10
10
|
- Andrea Usuelli
|
11
11
|
- Simone Quaini
|
12
12
|
- Eugenio Laghi
|
13
|
+
- Giuseppe D'Anna
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
|
-
date:
|
17
|
+
date: 2020-07-01 00:00:00.000000000 Z
|
17
18
|
dependencies:
|
18
19
|
- !ruby/object:Gem::Dependency
|
19
|
-
name: aws-sdk
|
20
|
+
name: aws-sdk-autoscaling
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '1'
|
26
|
+
type: :runtime
|
27
|
+
prerelease: false
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: aws-sdk-batch
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: aws-sdk-cloudformation
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: aws-sdk-cloudfront
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: aws-sdk-ec2
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: aws-sdk-ecs
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: aws-sdk-elasticloadbalancingv2
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '1'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: aws-sdk-s3
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '1'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '1'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: aws-sdk-core
|
20
133
|
requirement: !ruby/object:Gem::Requirement
|
21
134
|
requirements:
|
22
135
|
- - "~>"
|
@@ -172,6 +285,7 @@ dependencies:
|
|
172
285
|
description: Our tools to manage git and github
|
173
286
|
email: matteo.giachino@prima.it
|
174
287
|
executables:
|
288
|
+
- twig-build
|
175
289
|
- twig-circle
|
176
290
|
- twig-deploy
|
177
291
|
- twig-feature
|
@@ -183,6 +297,7 @@ executables:
|
|
183
297
|
extensions: []
|
184
298
|
extra_rdoc_files: []
|
185
299
|
files:
|
300
|
+
- bin/twig-build
|
186
301
|
- bin/twig-circle
|
187
302
|
- bin/twig-deploy
|
188
303
|
- bin/twig-feature
|
@@ -213,8 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
328
|
- !ruby/object:Gem::Version
|
214
329
|
version: '0'
|
215
330
|
requirements: []
|
216
|
-
|
217
|
-
rubygems_version: 2.6.11
|
331
|
+
rubygems_version: 3.0.1
|
218
332
|
signing_key:
|
219
333
|
specification_version: 4
|
220
334
|
summary: The Prima twig toolbelt
|