hako 1.7.0 → 1.8.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: f81c77dc43aeaaf63eaf41066e2988b3402a7ab4
4
- data.tar.gz: e7d8de4361f7b24ca5aa1b8a3dfa8a9de9cdfaed
3
+ metadata.gz: d0e76021c2188815543806a45d895faefe103cf3
4
+ data.tar.gz: 901f08bf7cdc58f315e5da314406a0e6637e8d59
5
5
  SHA512:
6
- metadata.gz: ae3dd38326c2d3533f18b774b70282f93d1338d8b2a17bfd7383d2bcf62d2b2cc48fa2918c9051ba0a3ca59ad62de84a167d65f35be9c18f074ef953a64128f5
7
- data.tar.gz: f559ea0ab2183dfd04f324f9507475e4887fe1a8f130c214a3b1270c52adbebdcfd7310f6b5f19bc12cfd46c1abf286fe239642f8f3f9641b66a8a49fdb069d5
6
+ metadata.gz: 3f45ff523f92db022cf67fd8bc531ccda88d54fa2c98b2e051a3a6c3c9224a735a0edfb41ce1d1656a7f4059e6d7697a4fe76b21bee267340115f2fa24505a75
7
+ data.tar.gz: e4656997f0aea4ffa8388d54a937d7457aefbfdf74d054f6aa278c30f2a69360b788029ddfb742d3826af69d7176292a42c21ee25462dbcf1e32168de5903eb5
@@ -1,3 +1,7 @@
1
+ # 1.8.0 (2017-09-15)
2
+ ## Changes
3
+ - Migrate to aws-sdk v3
4
+
1
5
  # 1.7.0 (2017-08-29)
2
6
  ## New features
3
7
  - Add experimental `autoscaling_topic_for_oneshot` option to ECS scheduler
@@ -21,7 +21,16 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
  spec.required_ruby_version = '>= 2.3.0'
23
23
 
24
- spec.add_dependency 'aws-sdk', '>= 2.6.43'
24
+ spec.add_dependency 'aws-sdk-applicationautoscaling'
25
+ spec.add_dependency 'aws-sdk-autoscaling'
26
+ spec.add_dependency 'aws-sdk-cloudwatch'
27
+ spec.add_dependency 'aws-sdk-cloudwatchlogs'
28
+ spec.add_dependency 'aws-sdk-ec2'
29
+ spec.add_dependency 'aws-sdk-ecs'
30
+ spec.add_dependency 'aws-sdk-elasticloadbalancing'
31
+ spec.add_dependency 'aws-sdk-elasticloadbalancingv2'
32
+ spec.add_dependency 'aws-sdk-s3'
33
+ spec.add_dependency 'aws-sdk-sns'
25
34
 
26
35
  spec.add_development_dependency 'bundler'
27
36
  spec.add_development_dependency 'coveralls'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aws-sdk'
4
-
5
3
  module Hako
6
4
  class Scheduler
7
5
  class ValidationError < Error
@@ -1,6 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aws-sdk'
3
+ require 'aws-sdk-autoscaling'
4
+ require 'aws-sdk-ec2'
5
+ require 'aws-sdk-ecs'
6
+ require 'aws-sdk-s3'
7
+ require 'aws-sdk-sns'
4
8
  require 'hako'
5
9
  require 'hako/error'
6
10
  require 'hako/scheduler'
@@ -80,9 +84,7 @@ module Hako
80
84
  else
81
85
  Hako.logger.info "Task definition isn't changed: #{task_definition.task_definition_arn}"
82
86
  end
83
- unless current_service
84
- current_service = create_initial_service(task_definition.task_definition_arn, front_port)
85
- end
87
+ current_service ||= create_initial_service(task_definition.task_definition_arn, front_port)
86
88
  service = update_service(current_service, task_definition.task_definition_arn)
87
89
  if service == :noop
88
90
  Hako.logger.info "Service isn't changed"
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'aws-sdk-applicationautoscaling'
4
+ require 'aws-sdk-cloudwatch'
3
5
  require 'hako'
4
6
  require 'hako/error'
5
7
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aws-sdk'
3
+ require 'aws-sdk-elasticloadbalancing'
4
4
  require 'hako'
5
5
 
6
6
  module Hako
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aws-sdk'
3
+ require 'aws-sdk-elasticloadbalancingv2'
4
4
  require 'hako'
5
5
 
6
6
  module Hako
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aws-sdk'
3
+ require 'aws-sdk-cloudwatchlogs'
4
4
  require 'hako'
5
5
  require 'hako/script'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aws-sdk'
3
+ require 'aws-sdk-s3'
4
4
  require 'erb'
5
5
  require 'hako'
6
6
  require 'hako/script'
@@ -129,9 +129,9 @@ module Hako
129
129
 
130
130
  # @return [Hash<String, Location>]
131
131
  def locations
132
- locs = @options.fetch('locations').dup
133
- locs.keys.each do |k|
134
- locs[k] = Location.new(locs[k])
132
+ locs = {}
133
+ @options.fetch('locations').each do |k, v|
134
+ locs[k] = Location.new(v)
135
135
  end
136
136
  locs
137
137
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hako
4
- VERSION = '1.7.0'
4
+ VERSION = '1.8.0'
5
5
  end
metadata CHANGED
@@ -1,29 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: aws-sdk
14
+ name: aws-sdk-applicationautoscaling
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.6.43
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: aws-sdk-autoscaling
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aws-sdk-cloudwatch
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: aws-sdk-cloudwatchlogs
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: aws-sdk-ec2
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
20
76
  type: :runtime
21
77
  prerelease: false
22
78
  version_requirements: !ruby/object:Gem::Requirement
23
79
  requirements:
24
80
  - - ">="
25
81
  - !ruby/object:Gem::Version
26
- version: 2.6.43
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: aws-sdk-ecs
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: aws-sdk-elasticloadbalancing
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: aws-sdk-elasticloadbalancingv2
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: aws-sdk-s3
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: aws-sdk-sns
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
27
153
  - !ruby/object:Gem::Dependency
28
154
  name: bundler
29
155
  requirement: !ruby/object:Gem::Requirement