hako 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 938f0e65da32f6929d48b4eb36de870402f95459
4
- data.tar.gz: c80c5b03b852a7f8c7d6f4d9a87c4fb7d06e676b
3
+ metadata.gz: 8132d4fdde39cc509908b3d273174ded381a501a
4
+ data.tar.gz: 0fef4841bd44a96b1679ec9eebce90315702b71c
5
5
  SHA512:
6
- metadata.gz: 1bf2dacf9340751b1c699273e3fe5ac75d44dda64aa2e0869c15ba21f65ddd67b2933f3f3cd79687cf6fd2f4a53b98b2b394f6eee06f05c87bc02236b52d9d96
7
- data.tar.gz: 873fe2dd11e42b725a9df3094187d592d7644984e8e9bc9845eac6f0b1a467f5f2b380b49e803cd3c5c7a24904cabcf92de8d2070cdae90a51ee34c54edf9cab
6
+ metadata.gz: 24e62fa07fad04b8ae890799315faf3c7c6f175b7735cd53deb985f858772ccf56833c4bd59e5237ff9065cc20f22c1aea3dbf77b05af18babea36b2d4fd1336
7
+ data.tar.gz: 6d3ef08bc561382969cf04552d749e09be92d6a5691415122d73487520e19e3e624d046107d34f253e7f97b562df9987b486f65900dcf788e5a1678ba08d97a1
@@ -1,3 +1,8 @@
1
+ # 1.0.1 (2017-03-07)
2
+ ## Bug fixes
3
+ - Fix default value of `@volumes`
4
+ - When `mount_points` is specified but no `volumes` is given, hako was raising unfriendly errors
5
+
1
6
  # 1.0.0 (2017-03-06)
2
- ## Incompatibility
7
+ ## Incompatibilities
3
8
  - Raise error when env value is not String (#31)
@@ -20,7 +20,7 @@ module Hako
20
20
  def deploy(force: false, tag: 'latest', dry_run: false, timeout:)
21
21
  containers = load_containers(tag, dry_run: dry_run)
22
22
  scripts = @app.yaml.fetch('scripts', []).map { |config| load_script(config, dry_run: dry_run) }
23
- volumes = @app.yaml.fetch('volumes', [])
23
+ volumes = @app.yaml.fetch('volumes', {})
24
24
  scheduler = load_scheduler(@app.yaml['scheduler'], scripts, volumes: volumes, force: force, dry_run: dry_run, timeout: timeout)
25
25
 
26
26
  scripts.each { |script| script.deploy_starting(containers) }
@@ -46,7 +46,7 @@ module Hako
46
46
  def oneshot(commands, tag:, containers:, env: {}, dry_run: false)
47
47
  containers = load_containers(tag, dry_run: dry_run, with: containers)
48
48
  scripts = @app.yaml.fetch('scripts', []).map { |config| load_script(config, dry_run: dry_run) }
49
- volumes = @app.yaml.fetch('volumes', [])
49
+ volumes = @app.yaml.fetch('volumes', {})
50
50
  scheduler = load_scheduler(@app.yaml['scheduler'], scripts, volumes: volumes, dry_run: dry_run)
51
51
 
52
52
  scripts.each { |script| script.oneshot_starting(containers) }
@@ -120,7 +120,7 @@ module Hako
120
120
  # @param [Boolean] dry_run
121
121
  # @param [Integer] timeout
122
122
  # @return [Scheduler]
123
- def load_scheduler(yaml, scripts, volumes: [], force: false, dry_run:, timeout: nil)
123
+ def load_scheduler(yaml, scripts, volumes: {}, force: false, dry_run:, timeout: nil)
124
124
  Loader.new(Hako::Schedulers, 'hako/schedulers').load(yaml.fetch('type')).new(@app.id, yaml, volumes: volumes, scripts: scripts, force: force, dry_run: dry_run, timeout: timeout)
125
125
  end
126
126
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hako
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  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.0.0
4
+ version: 1.0.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-03-06 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk