rollo 0.4.0 → 0.5.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f56ade1caa6cdf9c29e8c48346ebcd591550bfbb
|
4
|
+
data.tar.gz: 9f661dab545588f447394f80d296187800766524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a6ee4e91ba74b736b4000a66d8b167ab6cbd432e276e2b7ceb9c2aa7c5cf8f520ce829ffe13b07bcbf32215d976596e433e1ad2ab74bf93210cb9430e3be81
|
7
|
+
data.tar.gz: b515e70c773228188bf482bba4fcb9405df35f1c9e2ed0025d020298e7f5935b1b0777118fa75c199776e0211db04b81c494c08922037b6222bad19ef5d0b8ae
|
data/Gemfile.lock
CHANGED
@@ -3,14 +3,16 @@ require_relative '../model'
|
|
3
3
|
|
4
4
|
module Rollo
|
5
5
|
module Commands
|
6
|
-
class
|
6
|
+
class Hosts < Thor
|
7
|
+
namespace :hosts
|
8
|
+
|
7
9
|
def self.exit_on_failure?
|
8
10
|
true
|
9
11
|
end
|
10
12
|
|
11
13
|
desc(
|
12
14
|
'expand REGION ASG_NAME ECS_CLUSTER_NAME',
|
13
|
-
'')
|
15
|
+
'Expands the host cluster by one batch.')
|
14
16
|
method_option(
|
15
17
|
:batch_size,
|
16
18
|
aliases: '-b',
|
@@ -53,7 +55,7 @@ module Rollo
|
|
53
55
|
|
54
56
|
desc(
|
55
57
|
'contract REGION ASG_NAME ECS_CLUSTER_NAME',
|
56
|
-
'')
|
58
|
+
'Contracts the host cluster by one batch')
|
57
59
|
method_option(
|
58
60
|
:batch_size,
|
59
61
|
aliases: '-b',
|
@@ -111,7 +113,7 @@ module Rollo
|
|
111
113
|
|
112
114
|
desc(
|
113
115
|
'terminate REGION ASG_NAME ECS_CLUSTER_NAME INSTANCE_IDS*',
|
114
|
-
'')
|
116
|
+
'Terminates the specified hosts within the cluster.')
|
115
117
|
method_option(
|
116
118
|
:batch_size,
|
117
119
|
aliases: '-b',
|
data/lib/rollo/commands/main.rb
CHANGED
@@ -1,28 +1,30 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require_relative '../model'
|
3
|
-
require_relative './
|
4
|
-
require_relative './
|
3
|
+
require_relative './hosts'
|
4
|
+
require_relative './services'
|
5
5
|
|
6
6
|
module Rollo
|
7
7
|
module Commands
|
8
8
|
class Main < Thor
|
9
|
+
namespace :main
|
10
|
+
|
9
11
|
def self.exit_on_failure?
|
10
12
|
true
|
11
13
|
end
|
12
14
|
|
13
|
-
desc('
|
14
|
-
subcommand
|
15
|
+
desc('hosts', 'Manages the host cluster')
|
16
|
+
subcommand :hosts, Rollo::Commands::Hosts
|
15
17
|
|
16
|
-
desc('
|
17
|
-
subcommand
|
18
|
+
desc('services', 'Manages the service cluster')
|
19
|
+
subcommand :services, Rollo::Commands::Services
|
18
20
|
|
19
|
-
desc('version', '
|
21
|
+
desc('version', 'Prints the version number of rollo')
|
20
22
|
def version
|
21
23
|
say Rollo::VERSION
|
22
24
|
end
|
23
25
|
|
24
26
|
desc('roll REGION ASG_NAME ECS_CLUSTER_NAME',
|
25
|
-
'
|
27
|
+
'Rolls all hosts in the cluster')
|
26
28
|
method_option(
|
27
29
|
:batch_size,
|
28
30
|
aliases: '-b',
|
@@ -51,35 +53,35 @@ module Rollo
|
|
51
53
|
end
|
52
54
|
|
53
55
|
invoke(
|
54
|
-
"
|
56
|
+
"hosts:expand",
|
55
57
|
[
|
56
58
|
region, asg_name, ecs_cluster_name,
|
57
59
|
host_cluster
|
58
60
|
])
|
59
61
|
|
60
62
|
invoke(
|
61
|
-
"
|
63
|
+
"services:expand",
|
62
64
|
[
|
63
65
|
region, asg_name, ecs_cluster_name,
|
64
66
|
service_cluster
|
65
67
|
])
|
66
68
|
|
67
69
|
invoke(
|
68
|
-
"
|
70
|
+
"hosts:terminate",
|
69
71
|
[
|
70
72
|
region, asg_name, ecs_cluster_name, initial_hosts.map(&:id),
|
71
73
|
host_cluster, service_cluster
|
72
74
|
])
|
73
75
|
|
74
76
|
invoke(
|
75
|
-
"
|
77
|
+
"hosts:contract",
|
76
78
|
[
|
77
79
|
region, asg_name, ecs_cluster_name,
|
78
80
|
host_cluster, service_cluster
|
79
81
|
])
|
80
82
|
|
81
83
|
invoke(
|
82
|
-
"
|
84
|
+
"services:contract",
|
83
85
|
[
|
84
86
|
region, asg_name, ecs_cluster_name,
|
85
87
|
service_cluster
|
@@ -3,14 +3,16 @@ require_relative '../model'
|
|
3
3
|
|
4
4
|
module Rollo
|
5
5
|
module Commands
|
6
|
-
class
|
6
|
+
class Services < Thor
|
7
|
+
namespace :services
|
8
|
+
|
7
9
|
def self.exit_on_failure?
|
8
10
|
true
|
9
11
|
end
|
10
12
|
|
11
13
|
desc(
|
12
14
|
'expand REGION ASG_NAME ECS_CLUSTER_NAME',
|
13
|
-
'')
|
15
|
+
'Expands the service cluster by one batch.')
|
14
16
|
method_option(
|
15
17
|
:batch_size,
|
16
18
|
aliases: '-b',
|
@@ -77,7 +79,7 @@ module Rollo
|
|
77
79
|
|
78
80
|
desc(
|
79
81
|
'contract REGION ASG_NAME ECS_CLUSTER_NAME',
|
80
|
-
'')
|
82
|
+
'Contracts the service cluster by one batch.')
|
81
83
|
method_option(
|
82
84
|
:batch_size,
|
83
85
|
aliases: '-b',
|
data/lib/rollo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -189,9 +189,9 @@ files:
|
|
189
189
|
- go
|
190
190
|
- lib/rollo.rb
|
191
191
|
- lib/rollo/commands.rb
|
192
|
-
- lib/rollo/commands/
|
192
|
+
- lib/rollo/commands/hosts.rb
|
193
193
|
- lib/rollo/commands/main.rb
|
194
|
-
- lib/rollo/commands/
|
194
|
+
- lib/rollo/commands/services.rb
|
195
195
|
- lib/rollo/model.rb
|
196
196
|
- lib/rollo/model/host.rb
|
197
197
|
- lib/rollo/model/host_cluster.rb
|