hako 1.6.0 → 1.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: b4b66507d80228e05ee0fdd78429ff9898f8ed5c
4
- data.tar.gz: af54939a042cfcaa1a17a36a9c33a1ea822749a4
3
+ metadata.gz: 33326412067e2d76c5eefbfbbfce921c8fdd1c18
4
+ data.tar.gz: 5bc1462886aa8f7ddd30cea32801456c876f1d06
5
5
  SHA512:
6
- metadata.gz: a96ceada37a687ffeba40a6fd27c6133bc542ca18b959c531f823e0669147fd2be945c1bc5e7ccc8dd64a86026ef4e1ebd5fc822044ab66be2fc6896b20a8566
7
- data.tar.gz: 6d3a66534d013a1f306f1ab1fcf9426be5cfc6f2d383b0b4bbb55a59f1793fee1414ed9697ee1fb9b99479d427915d02d08bfdec6e91fa55533e2737c1cb03e9
6
+ metadata.gz: c8c213b893312540f4a5354f72ddff83c322a5c790bad6b21803f0b97d81a82ebd71b6dfc7be267f942caf8b7e3f4c94a7096ffc07cacbb23c1a5bdc89af3e06
7
+ data.tar.gz: 26708b2e2aca74e1f246da4e8030a6b831d7585a1eb891ab7533b10d5eaad48255515db32434749203e22d9bb43f19cc1aeca7bc6382ec29095c1f0f572d6908
@@ -1,3 +1,7 @@
1
+ # 1.6.1 (2017-06-26)
2
+ ## Changes
3
+ - Output cluster information in `--no-wait` mode
4
+
1
5
  # 1.6.0 (2017-06-23)
2
6
  ## New features
3
7
  - Add experimental option `--no-wait` to oneshot
@@ -172,7 +172,7 @@ module Hako
172
172
  opts.on('-n', '--dry-run', 'Enable dry-run mode') { @dry_run = true }
173
173
  opts.on('-c', '--container=NAME', 'Additional container name to start with the app container') { |v| @containers << v }
174
174
  opts.on('-v', '--verbose', 'Enable verbose logging') { @verbose = true }
175
- opts.on('--no-wait', 'Run Docker container in background and return an identifier depending on scheduler (experimental)') { @no_wait = true }
175
+ opts.on('--no-wait', 'Run Docker container in background and return task information depending on scheduler (experimental)') { @no_wait = true }
176
176
  opts.on('-e', '--env=NAME=VAL', 'Add environment variable') do |arg|
177
177
  k, v = arg.split('=', 2)
178
178
  @env[k] = v
@@ -163,7 +163,8 @@ module Hako
163
163
  Hako.logger.info "Started task: #{@task.task_arn}"
164
164
  @scripts.each { |script| script.oneshot_started(self) }
165
165
  if no_wait
166
- puts @task.task_arn
166
+ info = { cluster: @cluster, task_arn: @task.task_arn }
167
+ puts JSON.dump(info)
167
168
  0
168
169
  else
169
170
  wait_for_oneshot_finish
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hako
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
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-06-23 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk