dockly 3.2.0.pre.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dockly/build_cache/base.rb +8 -2
- data/lib/dockly/deb.rb +8 -2
- data/lib/dockly/docker.rb +2 -1
- data/lib/dockly/s3_writer.rb +5 -2
- data/lib/dockly/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODI3Y2E3MmU4NzIzNGM3Y2Q5MzA5MzQ0MTU0MmM5OTA5N2VjZTc3Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2RkM2IzMjJlNzhiMGMwZTdjNGI2NDIzYTliMDEyOGRhNThkOTQ3ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTBmZjQ3OWUwOTU2N2RkYjk4ODYyY2M2ZmQ2ZDM5YmUzNjhkNGUwNWUzNmQ1
|
10
|
+
MWNlYmE4ZjlmZmYyMTczZDQ1MTRmODhhNjBhNjc3YzA2Nzg4NDdkODMwOWYw
|
11
|
+
ZjgyOTMxZWRjZDc4YmU2YzdiZmIxZTc3Nzg1Zjg1YWI4NDVmYjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTZjYjU2OTYzZDc2ZmViM2IyNmUwZTE4NzQ3ZmYyNmM4OGQwMWM1NDc4NGE3
|
14
|
+
N2FjZjIzZjNiYWI4ZGNiNTJlODg3MmRjMjRjZTcxMDcyMTQwODg1OGQ4MjYz
|
15
|
+
ZWI4NWQ4NDNhMmJlYTFjNDA3ODdjNGIyOTFmMjI5ZGM1ZWUwNzg=
|
@@ -89,11 +89,17 @@ class Dockly::BuildCache::Base
|
|
89
89
|
|
90
90
|
def push_to_s3(file)
|
91
91
|
ensure_present! :s3_bucket, :s3_object_prefix
|
92
|
-
connection.put_object(
|
92
|
+
connection.put_object(
|
93
|
+
bucket: s3_bucket,
|
94
|
+
key: s3_object(hash_output),
|
95
|
+
body: file,
|
96
|
+
acl: 'bucket-owner-full-control',
|
97
|
+
)
|
93
98
|
connection.copy_object(
|
94
99
|
copy_source: [s3_bucket, s3_object(hash_output)].join('/'),
|
95
100
|
bucket: s3_bucket,
|
96
|
-
key: s3_object('latest')
|
101
|
+
key: s3_object('latest'),
|
102
|
+
acl: 'bucket-owner-full-control',
|
97
103
|
)
|
98
104
|
end
|
99
105
|
|
data/lib/dockly/deb.rb
CHANGED
@@ -55,7 +55,8 @@ class Dockly::Deb
|
|
55
55
|
Dockly.s3.copy_object(
|
56
56
|
copy_source: File.join(s3_bucket, object),
|
57
57
|
bucket: s3_bucket,
|
58
|
-
key: s3_object_name
|
58
|
+
key: s3_object_name,
|
59
|
+
acl: 'bucket-owner-full-control',
|
59
60
|
)
|
60
61
|
info "Successfully copied s3://#{s3_bucket}/#{object} to s3://#{s3_bucket}/#{s3_object_name}"
|
61
62
|
end
|
@@ -81,7 +82,12 @@ class Dockly::Deb
|
|
81
82
|
raise "Package wasn't created!" unless File.exist?(build_path)
|
82
83
|
info "uploading package to s3"
|
83
84
|
File.open(build_path, 'rb') do |file|
|
84
|
-
Dockly.s3.put_object(
|
85
|
+
Dockly.s3.put_object(
|
86
|
+
bucket: s3_bucket,
|
87
|
+
key: s3_object_name,
|
88
|
+
body: file,
|
89
|
+
acl: 'bucket-owner-full-control',
|
90
|
+
)
|
85
91
|
end
|
86
92
|
end
|
87
93
|
|
data/lib/dockly/docker.rb
CHANGED
@@ -39,7 +39,8 @@ class Dockly::Docker
|
|
39
39
|
Dockly.s3.copy_object(
|
40
40
|
copy_source: File.join(s3_bucket, object),
|
41
41
|
bucket: s3_bucket,
|
42
|
-
key: s3_object
|
42
|
+
key: s3_object,
|
43
|
+
acl: 'bucket-owner-full-control',
|
43
44
|
)
|
44
45
|
info "Successfully copied s3://#{s3_bucket}/#{object} to s3://#{s3_bucket}/#{s3_object}"
|
45
46
|
end
|
data/lib/dockly/s3_writer.rb
CHANGED
@@ -72,8 +72,11 @@ module Dockly
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def multipart_upload
|
75
|
-
@multipart_upload ||=
|
76
|
-
|
75
|
+
@multipart_upload ||= connection.create_multipart_upload(
|
76
|
+
bucket: s3_bucket,
|
77
|
+
key: s3_object,
|
78
|
+
acl: 'bucket-owner-full-control',
|
79
|
+
)
|
77
80
|
end
|
78
81
|
end
|
79
82
|
end
|
data/lib/dockly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swipely, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -305,9 +305,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
305
305
|
version: '0'
|
306
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
307
307
|
requirements:
|
308
|
-
- - ! '
|
308
|
+
- - ! '>='
|
309
309
|
- !ruby/object:Gem::Version
|
310
|
-
version:
|
310
|
+
version: '0'
|
311
311
|
requirements: []
|
312
312
|
rubyforge_project:
|
313
313
|
rubygems_version: 2.6.2
|