mikoshi 0.6.1 → 0.7.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: d343746d2086e9e31c4195232261a14a3fe661c2
4
- data.tar.gz: 7dbbc27e50e573071cf3034f7d7b700e3fdd6284
3
+ metadata.gz: 93f681dfba8a5e4a2c9d79d9406b4f998bec957d
4
+ data.tar.gz: bcd39eb5b70014aa56e1074bcdf9506e0df270f2
5
5
  SHA512:
6
- metadata.gz: e54671362659a77c29976226fcc95178d33a967fd49e6b671f207f098edb5fe8808b081298a39ec69686cd755a3448b2de73018ebe1a2c10e735f4471e7392ae
7
- data.tar.gz: 1e2d7be77f07a27ae6e5828f0f4805fe2dc083a359aa4d42325983d321dee83d628aeaa4381f61df6b041d98638c9fdde78084ce2f6943e80dfcd295f097c81f
6
+ metadata.gz: dbfece8f9cb93b1cb64f3279ef235c013f143b0b9eb0c1fbfed4b042592a8eb832789413d80022055d10f147de4fcf77f692af23ad0c325cd18bdbb75eb235d9
7
+ data.tar.gz: b0b8e944dba4af8f540038bcf4df1ee8d96042cd9ff71df47ac2a7bee9d0a7d12453383c7e467433ad5524192313c5ea4f5ab9d8f5c7f219851885c94c86c9c3
@@ -3,7 +3,7 @@
3
3
  # rubocop: disable Metrics/AbcSize
4
4
  # rubocop: disable Metrics/ClassLength
5
5
 
6
- require 'aws-sdk'
6
+ require 'aws-sdk-ecs'
7
7
  require 'mikoshi/plan'
8
8
  require 'mikoshi/plan/task_definition'
9
9
  require 'mikoshi/plan/service'
@@ -43,6 +43,8 @@ module Mikoshi
43
43
  version
44
44
  when :help
45
45
  usage
46
+ else
47
+ command_is_unkown(command: @options[:command])
46
48
  end
47
49
  end
48
50
 
@@ -175,6 +177,10 @@ module Mikoshi
175
177
  update_service(service_name) if service_name
176
178
  end
177
179
 
180
+ def command_is_unkown(command: nil)
181
+ warn "'#{command}' is unknown command. Please see help by `mikoshi help`."
182
+ end
183
+
178
184
  def aws_client
179
185
  opt =
180
186
  if @options[:region].nil?
@@ -47,7 +47,7 @@ module Mikoshi
47
47
  when :update
48
48
  update_service
49
49
  end
50
- rescue => e
50
+ rescue StandardError => e
51
51
  invoke_failed_hooks
52
52
  raise e
53
53
  end
@@ -18,7 +18,7 @@ module Mikoshi
18
18
  invoke_after_register_hooks
19
19
 
20
20
  resp
21
- rescue => e
21
+ rescue StandardError => e
22
22
  invoke_failed_hooks
23
23
  raise e
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mikoshi
4
- VERSION = '0.6.1'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.required_ruby_version = '>= 2.3.0'
27
27
 
28
28
  spec.add_dependency 'activesupport', '~> 5'
29
- spec.add_dependency 'aws-sdk', '~> 2'
29
+ spec.add_dependency 'aws-sdk-ecs', '~> 1'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 1.14'
32
32
  spec.add_development_dependency 'codacy-coverage'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikoshi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: aws-sdk
28
+ name: aws-sdk-ecs
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2'
33
+ version: '1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2'
40
+ version: '1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.6.11
172
+ rubygems_version: 2.6.13
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: deploy and manage aws ecs