rollo 0.4.0 → 0.5.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: d49b2febf87b28c4d00601d4a24fc92f63ed7b94
4
- data.tar.gz: 7b916960773094acb7eaed498f0214e3e4139e27
3
+ metadata.gz: f56ade1caa6cdf9c29e8c48346ebcd591550bfbb
4
+ data.tar.gz: 9f661dab545588f447394f80d296187800766524
5
5
  SHA512:
6
- metadata.gz: ef93a0cded2cb84b2f069762925b2594d98423edec5ecda01d3ff731d4abdfe8b23ee341039badd82997564614abc21daf31265fc2a284c108ecf812fe90d190
7
- data.tar.gz: 3888571d98b5005306951b7141d7f4967716f9fb99354c521d8a9dd672c04c19244d714c213c3272babb9372b282c6eaa25f63659faa342e49859cc92e910a09
6
+ metadata.gz: 83a6ee4e91ba74b736b4000a66d8b167ab6cbd432e276e2b7ceb9c2aa7c5cf8f520ce829ffe13b07bcbf32215d976596e433e1ad2ab74bf93210cb9430e3be81
7
+ data.tar.gz: b515e70c773228188bf482bba4fcb9405df35f1c9e2ed0025d020298e7f5935b1b0777118fa75c199776e0211db04b81c494c08922037b6222bad19ef5d0b8ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rollo (0.4.0)
4
+ rollo (0.5.0)
5
5
  aws-sdk (~> 3.0)
6
6
  aws-sdk-ecs (~> 1.22)
7
7
  hollerback (~> 0.1)
@@ -3,14 +3,16 @@ require_relative '../model'
3
3
 
4
4
  module Rollo
5
5
  module Commands
6
- class HostCluster < Thor
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',
@@ -1,28 +1,30 @@
1
1
  require 'thor'
2
2
  require_relative '../model'
3
- require_relative './host_cluster'
4
- require_relative './service_cluster'
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('host-cluster', 'manages the host cluster')
14
- subcommand "host-cluster", Rollo::Commands::HostCluster
15
+ desc('hosts', 'Manages the host cluster')
16
+ subcommand :hosts, Rollo::Commands::Hosts
15
17
 
16
- desc('service-cluster', 'manages the service cluster')
17
- subcommand "service-cluster", Rollo::Commands::ServiceCluster
18
+ desc('services', 'Manages the service cluster')
19
+ subcommand :services, Rollo::Commands::Services
18
20
 
19
- desc('version', 'prints the version number of rollo')
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
- 'rolls all instances in an ECS cluster')
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
- "rollo:commands:host-cluster:expand",
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
- "rollo:commands:service-cluster:expand",
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
- "rollo:commands:host-cluster:terminate",
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
- "rollo:commands:host-cluster:contract",
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
- "rollo:commands:service-cluster:contract",
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 ServiceCluster < Thor
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
@@ -1,3 +1,3 @@
1
1
  module Rollo
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.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.4.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/host_cluster.rb
192
+ - lib/rollo/commands/hosts.rb
193
193
  - lib/rollo/commands/main.rb
194
- - lib/rollo/commands/service_cluster.rb
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