rollo 0.9.0.pre.5 → 0.9.0.pre.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,7 +69,7 @@ module Rollo
69
69
  # rubocop:disable Lint/ShadowingOuterLocalVariable
70
70
  with_padding do
71
71
  service.increase_instance_count_by(
72
- batch_size, maximum_instances: maximum_instances
72
+ batch_size, maximum_instances:
73
73
  ) do |on|
74
74
  on.prepare do |current, target|
75
75
  say(
@@ -16,7 +16,7 @@ module Rollo
16
16
  @region = region
17
17
  @asg_name = asg_name
18
18
  @asg_resource = asg_resource ||
19
- Aws::AutoScaling::Resource.new(region: region)
19
+ Aws::AutoScaling::Resource.new(region:)
20
20
  @asg = @asg_resource.group(@asg_name)
21
21
  record_latest_scaling_activity
22
22
 
@@ -84,11 +84,11 @@ module Rollo
84
84
  ensure_capacity_changed_to(decreased, &block)
85
85
  end
86
86
 
87
- def ensure_capacity_changed_to(capacity, &block)
87
+ def ensure_capacity_changed_to(capacity, &)
88
88
  self.desired_capacity = capacity
89
- wait_for_capacity_change_start(&block)
90
- wait_for_capacity_change_end(&block)
91
- wait_for_capacity_health(&block)
89
+ wait_for_capacity_change_start(&)
90
+ wait_for_capacity_change_end(&)
91
+ wait_for_capacity_health(&)
92
92
  record_latest_scaling_activity
93
93
  end
94
94
 
@@ -13,7 +13,7 @@ module Rollo
13
13
  )
14
14
  @ecs_cluster_name = ecs_cluster_name
15
15
  @ecs_service_arn = ecs_service_arn
16
- @ecs_resource = ecs_resource || Aws::ECS::Resource.new(region: region)
16
+ @ecs_resource = ecs_resource || Aws::ECS::Resource.new(region:)
17
17
  reload
18
18
 
19
19
  @waiter = waiter || Wait.new(attempts: 720, timeout: 30, delay: 5)
@@ -82,9 +82,9 @@ module Rollo
82
82
  ensure_instance_count(target, &block)
83
83
  end
84
84
 
85
- def ensure_instance_count(count, &block)
85
+ def ensure_instance_count(count, &)
86
86
  self.desired_count = count
87
- wait_for_service_health(&block)
87
+ wait_for_service_health(&)
88
88
  end
89
89
 
90
90
  def wait_for_service_health(&block)
@@ -11,7 +11,7 @@ module Rollo
11
11
  def initialize(ecs_cluster_name, region, ecs_resource = nil)
12
12
  @region = region
13
13
  @ecs_cluster_name = ecs_cluster_name
14
- @ecs_resource = ecs_resource || Aws::ECS::Resource.new(region: region)
14
+ @ecs_resource = ecs_resource || Aws::ECS::Resource.new(region:)
15
15
  @ecs_cluster = ecs_cluster
16
16
  end
17
17
 
data/lib/rollo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rollo
4
- VERSION = '0.9.0.pre.5'
4
+ VERSION = '0.9.0.pre.7'
5
5
  end
data/rollo.gemspec CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ['lib']
36
36
 
37
- spec.required_ruby_version = '>= 2.7'
37
+ spec.required_ruby_version = '>= 3.1'
38
38
 
39
39
  spec.add_dependency 'aws-sdk', '~> 3.0'
40
40
  spec.add_dependency 'aws-sdk-ecs', '~> 1.22'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre.5
4
+ version: 0.9.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-19 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -345,14 +345,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
345
  requirements:
346
346
  - - ">="
347
347
  - !ruby/object:Gem::Version
348
- version: '2.7'
348
+ version: '3.1'
349
349
  required_rubygems_version: !ruby/object:Gem::Requirement
350
350
  requirements:
351
351
  - - ">"
352
352
  - !ruby/object:Gem::Version
353
353
  version: 1.3.1
354
354
  requirements: []
355
- rubygems_version: 3.1.6
355
+ rubygems_version: 3.3.7
356
356
  signing_key:
357
357
  specification_version: 4
358
358
  summary: Cluster / service roller for AWS ECS.