hako 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/hako/commander.rb +3 -3
- data/lib/hako/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8132d4fdde39cc509908b3d273174ded381a501a
|
4
|
+
data.tar.gz: 0fef4841bd44a96b1679ec9eebce90315702b71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24e62fa07fad04b8ae890799315faf3c7c6f175b7735cd53deb985f858772ccf56833c4bd59e5237ff9065cc20f22c1aea3dbf77b05af18babea36b2d4fd1336
|
7
|
+
data.tar.gz: 6d3ef08bc561382969cf04552d749e09be92d6a5691415122d73487520e19e3e624d046107d34f253e7f97b562df9987b486f65900dcf788e5a1678ba08d97a1
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
##
|
7
|
+
## Incompatibilities
|
3
8
|
- Raise error when env value is not String (#31)
|
data/lib/hako/commander.rb
CHANGED
@@ -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:
|
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
|
|
data/lib/hako/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|