mikoshi 0.6.0 → 0.6.1

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: e07ee0e950e881ccf43b42fb0528695f1d229cff
4
- data.tar.gz: 1e9bf381a69bee72be583f4437e3876c83b3272b
3
+ metadata.gz: d343746d2086e9e31c4195232261a14a3fe661c2
4
+ data.tar.gz: 7dbbc27e50e573071cf3034f7d7b700e3fdd6284
5
5
  SHA512:
6
- metadata.gz: 5e31bf93102661b0ae4e3344866afb4c38eb0b801a4e2a2fbee7dc6d4e7cc695f12e4b0fc390875df43e35ca752fdeaef8691e55d4c9804523f64a7385b7e6cb
7
- data.tar.gz: 6fa9a70fa1d52549d53c4dfb6b68009a02578c3e9264d50538a096b2817343b8612e3a8ab48678b2ba6f09ce5daab73445c076f6752c59016e2f7df89df25fcd
6
+ metadata.gz: e54671362659a77c29976226fcc95178d33a967fd49e6b671f207f098edb5fe8808b081298a39ec69686cd755a3448b2de73018ebe1a2c10e735f4471e7392ae
7
+ data.tar.gz: 1e2d7be77f07a27ae6e5828f0f4805fe2dc083a359aa4d42325983d321dee83d628aeaa4381f61df6b041d98638c9fdde78084ce2f6943e80dfcd295f097c81f
@@ -1,3 +1,6 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+
1
4
  inherit_gem:
2
5
  unasukecop:
3
6
  - "config/rubocop.yml"
@@ -13,4 +16,4 @@ Metrics/BlockLength:
13
16
  - 'mikoshi.gemspec'
14
17
 
15
18
  Metrics/CyclomaticComplexity:
16
- Max: 8
19
+ Max: 10
@@ -6,6 +6,7 @@ rvm:
6
6
  - 2.3.4
7
7
  - 2.4.1
8
8
  - ruby-head
9
- before_install: gem install bundler -v 1.14.3
9
+ before_install: gem install bundler
10
10
  script:
11
11
  - bundle exec rspec
12
+ - bundle exec rubocop
data/README.md CHANGED
@@ -101,6 +101,13 @@ Subcommands
101
101
  --potdr
102
102
  Acronym of the "Print Only Task Definition Revision".
103
103
 
104
+ runtask
105
+ Invoke new task using specified task definition.
106
+
107
+ Option
108
+ --cluster
109
+ Set cluster to run task. (required)
110
+
104
111
  update_service
105
112
  Update service to given service yaml file.
106
113
  Wait for success to update the service. (Maximum 300 min)
@@ -26,7 +26,8 @@ module Mikoshi
26
26
  def runtask(cluster: nil)
27
27
  raise ArgumentError, 'cluster name is required.' if cluster.nil?
28
28
 
29
- resp = @client.run_task(task_definition: @data[:task_definition][:family], cluster: cluster)
29
+ resp = @client.register_task_definition(@data[:task_definition])
30
+ @client.run_task(task_definition: resp[:task_definition][:task_definition_arn], cluster: cluster)
30
31
  end
31
32
 
32
33
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mikoshi
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
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.0
4
+ version: 0.6.1
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-03 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport