rollo 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rollo/commands/host_cluster.rb +5 -5
- data/lib/rollo/commands/main.rb +5 -4
- data/lib/rollo/commands/service_cluster.rb +2 -2
- data/lib/rollo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e2b81faea48500f75086f04d95b7f2d3d75593
|
4
|
+
data.tar.gz: 3f74203704f3508bb3a0d344f2595fa188245ff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3543bf10d8df247c22083626e6be8006dd536ea03517d3475881a23fa77ece4098c48752248ada435ec25cec01dc71952834ced74fd640033d557fc8faed802
|
7
|
+
data.tar.gz: 7da375838f333321b9470d1bf0012c74abbd695f0e6637bc5e3aae6117a8d3ce7a10c1a9a200b0a6ab6d95e219eebe48a2ea69fa70b26af40d3bffbb8b351d58
|
data/Gemfile.lock
CHANGED
@@ -23,7 +23,7 @@ module Rollo
|
|
23
23
|
batch_size = options[:batch_size]
|
24
24
|
|
25
25
|
host_cluster = host_cluster ||
|
26
|
-
Rollo::HostCluster.new(asg_name, region)
|
26
|
+
Rollo::Model::HostCluster.new(asg_name, region)
|
27
27
|
|
28
28
|
say("Increasing host cluster desired capacity by #{batch_size}...")
|
29
29
|
with_padding do
|
@@ -66,9 +66,9 @@ module Rollo
|
|
66
66
|
batch_size = options[:batch_size]
|
67
67
|
|
68
68
|
host_cluster = host_cluster ||
|
69
|
-
Rollo::HostCluster.new(asg_name, region)
|
69
|
+
Rollo::Model::HostCluster.new(asg_name, region)
|
70
70
|
service_cluster = service_cluster ||
|
71
|
-
Rollo::ServiceCluster.new(ecs_cluster_name, region)
|
71
|
+
Rollo::Model::ServiceCluster.new(ecs_cluster_name, region)
|
72
72
|
|
73
73
|
say("Decreasing host cluster desired capacity by #{batch_size}...")
|
74
74
|
with_padding do
|
@@ -133,9 +133,9 @@ module Rollo
|
|
133
133
|
service_start_wait_seconds = 60 * service_start_wait_minutes
|
134
134
|
|
135
135
|
host_cluster = host_cluster ||
|
136
|
-
Rollo::HostCluster.new(asg_name, region)
|
136
|
+
Rollo::Model::HostCluster.new(asg_name, region)
|
137
137
|
service_cluster = service_cluster ||
|
138
|
-
Rollo::ServiceCluster.new(ecs_cluster_name, region)
|
138
|
+
Rollo::Model::ServiceCluster.new(ecs_cluster_name, region)
|
139
139
|
|
140
140
|
hosts = host_cluster.hosts.select {|h| instance_ids.include?(h.id) }
|
141
141
|
host_batches = hosts.each_slice(batch_size).to_a
|
data/lib/rollo/commands/main.rb
CHANGED
@@ -11,10 +11,10 @@ module Rollo
|
|
11
11
|
end
|
12
12
|
|
13
13
|
desc('host-cluster', 'manages the host cluster')
|
14
|
-
subcommand "host-cluster", HostCluster
|
14
|
+
subcommand "host-cluster", Commands::HostCluster
|
15
15
|
|
16
16
|
desc('service-cluster', 'manages the service cluster')
|
17
|
-
subcommand "service-cluster", ServiceCluster
|
17
|
+
subcommand "service-cluster", Commands::ServiceCluster
|
18
18
|
|
19
19
|
desc('version', 'prints the version number of rollo')
|
20
20
|
def version
|
@@ -32,8 +32,9 @@ module Rollo
|
|
32
32
|
'The number of hosts / service instances to add / remove at ' +
|
33
33
|
'a time.')
|
34
34
|
def roll(region, asg_name, ecs_cluster_name)
|
35
|
-
host_cluster = Rollo::HostCluster.new(asg_name, region)
|
36
|
-
service_cluster = Rollo::ServiceCluster
|
35
|
+
host_cluster = Rollo::Model::HostCluster.new(asg_name, region)
|
36
|
+
service_cluster = Rollo::Model::ServiceCluster
|
37
|
+
.new(ecs_cluster_name, region)
|
37
38
|
|
38
39
|
initial_hosts = host_cluster.hosts
|
39
40
|
|
@@ -32,7 +32,7 @@ module Rollo
|
|
32
32
|
service_start_wait_seconds = 60 * service_start_wait_minutes
|
33
33
|
|
34
34
|
service_cluster = service_cluster ||
|
35
|
-
Rollo::ServiceCluster.new(ecs_cluster_name, region)
|
35
|
+
Rollo::Model::ServiceCluster.new(ecs_cluster_name, region)
|
36
36
|
|
37
37
|
say("Increasing service instance counts by #{batch_size}...")
|
38
38
|
with_padding do
|
@@ -91,7 +91,7 @@ module Rollo
|
|
91
91
|
batch_size = options[:batch_size]
|
92
92
|
|
93
93
|
service_cluster = service_cluster ||
|
94
|
-
Rollo::ServiceCluster.new(ecs_cluster_name, region)
|
94
|
+
Rollo::Model::ServiceCluster.new(ecs_cluster_name, region)
|
95
95
|
|
96
96
|
say("Decreasing service instance counts by #{batch_size}...")
|
97
97
|
with_padding do
|
data/lib/rollo/version.rb
CHANGED