rollo 0.6.0 → 0.8.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile +4 -2
- data/Gemfile.lock +1205 -536
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/Rakefile +136 -10
- data/bin/console +4 -3
- data/lib/rollo/commands/hosts.rb +125 -79
- data/lib/rollo/commands/main.rb +67 -52
- data/lib/rollo/commands/services.rb +92 -57
- data/lib/rollo/commands.rb +2 -0
- data/lib/rollo/model/host.rb +4 -2
- data/lib/rollo/model/host_cluster.rb +34 -23
- data/lib/rollo/model/scaling_activity.rb +8 -6
- data/lib/rollo/model/service.rb +29 -20
- data/lib/rollo/model/service_cluster.rb +19 -14
- data/lib/rollo/model.rb +2 -0
- data/lib/rollo/version.rb +3 -1
- data/lib/rollo.rb +3 -1
- metadata +149 -41
- data/.envrc +0 -5
- data/.gitignore +0 -31
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.travis.yml +0 -5
- data/exe/rollo +0 -5
- data/go +0 -61
- data/rollo.gemspec +0 -37
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -38,6 +38,40 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.22'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: hollerback
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.20'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '2.0'
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0.20'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2.0'
|
41
75
|
- !ruby/object:Gem::Dependency
|
42
76
|
name: wait
|
43
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,105 +87,175 @@ dependencies:
|
|
53
87
|
- !ruby/object:Gem::Version
|
54
88
|
version: '0.5'
|
55
89
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
90
|
+
name: aruba
|
57
91
|
requirement: !ruby/object:Gem::Requirement
|
58
92
|
requirements:
|
59
93
|
- - "~>"
|
60
94
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
62
|
-
type: :
|
95
|
+
version: '0.14'
|
96
|
+
type: :development
|
63
97
|
prerelease: false
|
64
98
|
version_requirements: !ruby/object:Gem::Requirement
|
65
99
|
requirements:
|
66
100
|
- - "~>"
|
67
101
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
102
|
+
version: '0.14'
|
69
103
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
104
|
+
name: bundler
|
71
105
|
requirement: !ruby/object:Gem::Requirement
|
72
106
|
requirements:
|
73
107
|
- - "~>"
|
74
108
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
76
|
-
type: :
|
109
|
+
version: '2.0'
|
110
|
+
type: :development
|
77
111
|
prerelease: false
|
78
112
|
version_requirements: !ruby/object:Gem::Requirement
|
79
113
|
requirements:
|
80
114
|
- - "~>"
|
81
115
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
116
|
+
version: '2.0'
|
83
117
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
118
|
+
name: gem-release
|
85
119
|
requirement: !ruby/object:Gem::Requirement
|
86
120
|
requirements:
|
87
121
|
- - "~>"
|
88
122
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
123
|
+
version: '2.0'
|
90
124
|
type: :development
|
91
125
|
prerelease: false
|
92
126
|
version_requirements: !ruby/object:Gem::Requirement
|
93
127
|
requirements:
|
94
128
|
- - "~>"
|
95
129
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
130
|
+
version: '2.0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: irbtools
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '3.0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '3.0'
|
97
145
|
- !ruby/object:Gem::Dependency
|
98
146
|
name: rake
|
99
147
|
requirement: !ruby/object:Gem::Requirement
|
100
148
|
requirements:
|
101
149
|
- - "~>"
|
102
150
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
151
|
+
version: '13.0'
|
104
152
|
type: :development
|
105
153
|
prerelease: false
|
106
154
|
version_requirements: !ruby/object:Gem::Requirement
|
107
155
|
requirements:
|
108
156
|
- - "~>"
|
109
157
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
158
|
+
version: '13.0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rake_circle_ci
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0.9'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0.9'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: rake_github
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.5'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0.5'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rake_gpg
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0.12'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0.12'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: rake_ssh
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0.4'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - "~>"
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0.4'
|
111
215
|
- !ruby/object:Gem::Dependency
|
112
216
|
name: rspec
|
113
217
|
requirement: !ruby/object:Gem::Requirement
|
114
218
|
requirements:
|
115
219
|
- - "~>"
|
116
220
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
221
|
+
version: '3.9'
|
118
222
|
type: :development
|
119
223
|
prerelease: false
|
120
224
|
version_requirements: !ruby/object:Gem::Requirement
|
121
225
|
requirements:
|
122
226
|
- - "~>"
|
123
227
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
228
|
+
version: '3.9'
|
125
229
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
230
|
+
name: rubocop
|
127
231
|
requirement: !ruby/object:Gem::Requirement
|
128
232
|
requirements:
|
129
233
|
- - "~>"
|
130
234
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
235
|
+
version: '1.12'
|
132
236
|
type: :development
|
133
237
|
prerelease: false
|
134
238
|
version_requirements: !ruby/object:Gem::Requirement
|
135
239
|
requirements:
|
136
240
|
- - "~>"
|
137
241
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
242
|
+
version: '1.12'
|
139
243
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
244
|
+
name: rubocop-rake
|
141
245
|
requirement: !ruby/object:Gem::Requirement
|
142
246
|
requirements:
|
143
247
|
- - "~>"
|
144
248
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
249
|
+
version: '0.5'
|
146
250
|
type: :development
|
147
251
|
prerelease: false
|
148
252
|
version_requirements: !ruby/object:Gem::Requirement
|
149
253
|
requirements:
|
150
254
|
- - "~>"
|
151
255
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
256
|
+
version: '0.5'
|
153
257
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
258
|
+
name: rubocop-rspec
|
155
259
|
requirement: !ruby/object:Gem::Requirement
|
156
260
|
requirements:
|
157
261
|
- - "~>"
|
@@ -164,19 +268,27 @@ dependencies:
|
|
164
268
|
- - "~>"
|
165
269
|
- !ruby/object:Gem::Version
|
166
270
|
version: '2.2'
|
271
|
+
- !ruby/object:Gem::Dependency
|
272
|
+
name: simplecov
|
273
|
+
requirement: !ruby/object:Gem::Requirement
|
274
|
+
requirements:
|
275
|
+
- - "~>"
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0.21'
|
278
|
+
type: :development
|
279
|
+
prerelease: false
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - "~>"
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: '0.21'
|
167
285
|
description: Strategies for rolling ECS container instance clusters.
|
168
286
|
email:
|
169
|
-
-
|
170
|
-
executables:
|
171
|
-
- rollo
|
287
|
+
- maintainers@infrablocks.io
|
288
|
+
executables: []
|
172
289
|
extensions: []
|
173
290
|
extra_rdoc_files: []
|
174
291
|
files:
|
175
|
-
- ".envrc"
|
176
|
-
- ".gitignore"
|
177
|
-
- ".rspec"
|
178
|
-
- ".ruby-version"
|
179
|
-
- ".travis.yml"
|
180
292
|
- CODE_OF_CONDUCT.md
|
181
293
|
- Gemfile
|
182
294
|
- Gemfile.lock
|
@@ -185,8 +297,6 @@ files:
|
|
185
297
|
- Rakefile
|
186
298
|
- bin/console
|
187
299
|
- bin/setup
|
188
|
-
- exe/rollo
|
189
|
-
- go
|
190
300
|
- lib/rollo.rb
|
191
301
|
- lib/rollo/commands.rb
|
192
302
|
- lib/rollo/commands/hosts.rb
|
@@ -199,7 +309,6 @@ files:
|
|
199
309
|
- lib/rollo/model/service.rb
|
200
310
|
- lib/rollo/model/service_cluster.rb
|
201
311
|
- lib/rollo/version.rb
|
202
|
-
- rollo.gemspec
|
203
312
|
homepage: https://github.com/infrablocks/rollo
|
204
313
|
licenses:
|
205
314
|
- MIT
|
@@ -212,15 +321,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
321
|
requirements:
|
213
322
|
- - ">="
|
214
323
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
324
|
+
version: '2.6'
|
216
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
326
|
requirements:
|
218
|
-
- - "
|
327
|
+
- - ">"
|
219
328
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
329
|
+
version: 1.3.1
|
221
330
|
requirements: []
|
222
|
-
|
223
|
-
rubygems_version: 2.5.2.3
|
331
|
+
rubygems_version: 3.0.1
|
224
332
|
signing_key:
|
225
333
|
specification_version: 4
|
226
334
|
summary: Cluster / service roller for AWS ECS.
|
data/.envrc
DELETED
data/.gitignore
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
## Standard stuff:
|
2
|
-
*.gem
|
3
|
-
*.rbc
|
4
|
-
/.config
|
5
|
-
/coverage/
|
6
|
-
/InstalledFiles
|
7
|
-
/pkg/
|
8
|
-
.rspec_status
|
9
|
-
/spec/reports/
|
10
|
-
/spec/examples.txt
|
11
|
-
/test/tmp/
|
12
|
-
/test/version_tmp/
|
13
|
-
/tmp/
|
14
|
-
.rakeTasks
|
15
|
-
|
16
|
-
## Documentation cache and generated files:
|
17
|
-
/.yardoc/
|
18
|
-
/_yardoc/
|
19
|
-
/doc/
|
20
|
-
/rdoc/
|
21
|
-
|
22
|
-
## Environment normalization:
|
23
|
-
/.bundle/
|
24
|
-
/vendor/bundle
|
25
|
-
/lib/bundler/man/
|
26
|
-
|
27
|
-
## IDE:
|
28
|
-
.idea
|
29
|
-
*.ipr
|
30
|
-
*.iws
|
31
|
-
*.iml
|
data/.rspec
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.7
|
data/.travis.yml
DELETED
data/exe/rollo
DELETED
data/go
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
[ -n "$GO_DEBUG" ] && set -x
|
4
|
-
set -e
|
5
|
-
|
6
|
-
project_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
7
|
-
|
8
|
-
verbose="no"
|
9
|
-
skip_checks="no"
|
10
|
-
offline="no"
|
11
|
-
|
12
|
-
missing_dependency="no"
|
13
|
-
|
14
|
-
[ -n "$GO_DEBUG" ] && verbose="yes"
|
15
|
-
[ -n "$GO_SKIP_CHECKS" ] && skip_checks="yes"
|
16
|
-
[ -n "$GO_OFFLINE" ] && offline="yes"
|
17
|
-
|
18
|
-
|
19
|
-
if [[ "$skip_checks" = "no" ]]; then
|
20
|
-
echo "Checking for system dependencies."
|
21
|
-
ruby_version="$(cat "$project_dir"/.ruby-version)"
|
22
|
-
if ! type ruby >/dev/null 2>&1 || ! ruby -v | grep -q "$ruby_version"; then
|
23
|
-
echo "This codebase requires Ruby $ruby_version."
|
24
|
-
missing_dependency="yes"
|
25
|
-
fi
|
26
|
-
|
27
|
-
if ! type bundler >/dev/null 2>&1; then
|
28
|
-
echo "This codebase requires Bundler."
|
29
|
-
missing_dependency="yes"
|
30
|
-
fi
|
31
|
-
|
32
|
-
if [[ "$missing_dependency" = "yes" ]]; then
|
33
|
-
echo "Please install missing dependencies to continue."
|
34
|
-
exit 1
|
35
|
-
fi
|
36
|
-
|
37
|
-
echo "All system dependencies present. Continuing."
|
38
|
-
fi
|
39
|
-
|
40
|
-
if [[ "$offline" = "no" ]]; then
|
41
|
-
echo "Installing bundler."
|
42
|
-
if [[ "$verbose" = "yes" ]]; then
|
43
|
-
gem install --no-document bundler
|
44
|
-
else
|
45
|
-
gem install --no-document bundler > /dev/null
|
46
|
-
fi
|
47
|
-
|
48
|
-
echo "Installing ruby dependencies."
|
49
|
-
if [[ "$verbose" = "yes" ]]; then
|
50
|
-
bundle install
|
51
|
-
else
|
52
|
-
bundle install > /dev/null
|
53
|
-
fi
|
54
|
-
fi
|
55
|
-
|
56
|
-
echo "Starting rake."
|
57
|
-
if [[ "$verbose" = "yes" ]]; then
|
58
|
-
time bundle exec rake --verbose "$@"
|
59
|
-
else
|
60
|
-
time bundle exec rake "$@"
|
61
|
-
fi
|
data/rollo.gemspec
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'rollo/version'
|
4
|
-
require 'date'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'rollo'
|
8
|
-
spec.version = Rollo::VERSION
|
9
|
-
spec.authors = ['Toby Clemson']
|
10
|
-
spec.email = ['tobyclemson@gmail.com']
|
11
|
-
|
12
|
-
spec.date = Date.today.to_s
|
13
|
-
spec.summary = 'Cluster / service roller for AWS ECS.'
|
14
|
-
spec.description = 'Strategies for rolling ECS container instance clusters.'
|
15
|
-
spec.homepage = 'https://github.com/infrablocks/rollo'
|
16
|
-
spec.license = "MIT"
|
17
|
-
|
18
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
-
f.match(%r{^(test|spec|features)/})
|
20
|
-
end
|
21
|
-
spec.bindir = 'exe'
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f)}
|
23
|
-
spec.require_paths = ['lib']
|
24
|
-
|
25
|
-
spec.add_dependency 'aws-sdk', '~> 3.0'
|
26
|
-
spec.add_dependency 'aws-sdk-ecs', '~> 1.22'
|
27
|
-
spec.add_dependency 'wait', '~> 0.5'
|
28
|
-
spec.add_dependency 'hollerback', '~> 0.1'
|
29
|
-
spec.add_dependency 'thor', '~> 0.20'
|
30
|
-
|
31
|
-
spec.add_development_dependency 'bundler', '~> 1.17'
|
32
|
-
spec.add_development_dependency 'rake', '~> 12.3'
|
33
|
-
spec.add_development_dependency 'rspec', '~> 3.8'
|
34
|
-
spec.add_development_dependency 'aruba', '~> 0.14'
|
35
|
-
spec.add_development_dependency 'gem-release', '~> 2.0'
|
36
|
-
spec.add_development_dependency 'irbtools', '~> 2.2'
|
37
|
-
end
|