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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f83f8e16530206415f33b822ff91fd6b1d16f471
4
- data.tar.gz: 984b98b946e9fa7bd248f562423a8e5dce40867a
3
+ metadata.gz: 17e2b81faea48500f75086f04d95b7f2d3d75593
4
+ data.tar.gz: 3f74203704f3508bb3a0d344f2595fa188245ff4
5
5
  SHA512:
6
- metadata.gz: 8576bdc8bd8356e80b309853b45a50da4f66c5fccd1374f3f290edd552fd47a52a35ebb71f719b9c947fa6b5f072fd3855d50692eb26cc5fdc2734177e8a96ec
7
- data.tar.gz: 31c562e224b5dc13c0477349b89fa9a62bf9f781e9822629016ef4a5e513889d17f6c520feb4820f2ccfdd733ee453dcbfc725ad2bbd05931df635f18fb7f3b0
6
+ metadata.gz: d3543bf10d8df247c22083626e6be8006dd536ea03517d3475881a23fa77ece4098c48752248ada435ec25cec01dc71952834ced74fd640033d557fc8faed802
7
+ data.tar.gz: 7da375838f333321b9470d1bf0012c74abbd695f0e6637bc5e3aae6117a8d3ce7a10c1a9a200b0a6ab6d95e219eebe48a2ea69fa70b26af40d3bffbb8b351d58
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rollo (0.1.0)
4
+ rollo (0.2.0)
5
5
  aws-sdk (~> 3.0)
6
6
  aws-sdk-ecs (~> 1.22)
7
7
  hollerback (~> 0.1)
@@ -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
@@ -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.new(ecs_cluster_name, region)
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
@@ -1,3 +1,3 @@
1
1
  module Rollo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson