hako 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hako/scripts/nginx_front.rb +11 -7
- 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: 4e3546c11125dcdd22aa894b140f12a21d72053c
|
4
|
+
data.tar.gz: f065a1ce00ac0bb8c970c21971783ee901c9727b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c115a3e2418af61c37e553f1300e825607fbf7f853058d404c741a2bbce39d9cdaa25bba9c8b3486eb6208900ab663f16ae9b369abd0f09280e2bdbf8db4a1b4
|
7
|
+
data.tar.gz: 1fe6dc394faacbaf5b8b928ac5dcf1773fdb78fd3a28048fdff12d8f05478c2eb2c1fceeb8f9681f30a94fceebc365af0696264d13a5bf48084d08c5813bef3b
|
@@ -46,6 +46,7 @@ module Hako
|
|
46
46
|
def configure(options)
|
47
47
|
super
|
48
48
|
@options = options
|
49
|
+
@options['locations'] ||= { '/' => {} }
|
49
50
|
@s3 = S3Config.new(@options.fetch('s3'))
|
50
51
|
end
|
51
52
|
|
@@ -62,11 +63,15 @@ module Hako
|
|
62
63
|
end
|
63
64
|
|
64
65
|
def upload_config(front_conf)
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
66
|
+
if @dry_run
|
67
|
+
Hako.logger.info "Generated configuration:\n#{front_conf}"
|
68
|
+
else
|
69
|
+
s3_client.put_object(
|
70
|
+
body: front_conf,
|
71
|
+
bucket: @s3.bucket,
|
72
|
+
key: @s3.key(@app.id),
|
73
|
+
)
|
74
|
+
end
|
70
75
|
end
|
71
76
|
|
72
77
|
def s3_client
|
@@ -102,8 +107,7 @@ module Hako
|
|
102
107
|
end
|
103
108
|
|
104
109
|
def locations
|
105
|
-
locs = @options.fetch('locations'
|
106
|
-
locs['/'] ||= {}
|
110
|
+
locs = @options.fetch('locations').dup
|
107
111
|
locs.keys.each do |k|
|
108
112
|
locs[k] = Location.new(locs[k])
|
109
113
|
end
|
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: 0.13.
|
4
|
+
version: 0.13.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: 2016-03-
|
11
|
+
date: 2016-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|