rollo 0.7.0 → 0.8.0.pre.1
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 +1127 -523
- data/LICENSE.txt +1 -1
- data/Rakefile +134 -10
- data/bin/console +4 -3
- data/lib/rollo.rb +3 -1
- data/lib/rollo/commands.rb +2 -0
- 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/model.rb +2 -0
- data/lib/rollo/model/host.rb +4 -2
- data/lib/rollo/model/host_cluster.rb +32 -22
- data/lib/rollo/model/scaling_activity.rb +8 -6
- data/lib/rollo/model/service.rb +28 -19
- data/lib/rollo/model/service_cluster.rb +19 -14
- data/lib/rollo/version.rb +3 -1
- metadata +141 -39
- 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
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', '~> 2.0'
|
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
|