cartage-s3 2.0.rc2 → 2.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cartage/plugins/s3.rb +2 -1
- data/test/test_cartage_s3.rb +6 -5
- 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: f9d30175d24f02f0d791873bfc458466213d2c1b
|
4
|
+
data.tar.gz: 7de59861ccf874acfc6e6ea435d878f772b7dc53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 387ca9da4e9fb34cf47cdd49f0e69fdf8e68f7763d5332dd52c3d86fed2bba2d43bd67db58af34f4700bad78f109f82571d7281e55451dc424a11808172f1a51
|
7
|
+
data.tar.gz: 5978020b4fd3cb0448bb0720da5d2f5d6bfef38a5d94cf42a3069b64c9605e1ab731c2538c7a3920d1ef7eabc8cfe6d55d7568d14a3c8369d6141e428cd17fc8
|
data/lib/cartage/plugins/s3.rb
CHANGED
@@ -102,7 +102,7 @@ class Cartage
|
|
102
102
|
#
|
103
103
|
# These permissions are only needed for the optionas listed.
|
104
104
|
class S3 < Cartage::Plugin
|
105
|
-
VERSION = '2.0.
|
105
|
+
VERSION = '2.0.rc3' #:nodoc:
|
106
106
|
|
107
107
|
# Put packages and metadata to the remote location.
|
108
108
|
def put
|
@@ -142,6 +142,7 @@ class Cartage
|
|
142
142
|
def delete
|
143
143
|
check_config(require_destination: true)
|
144
144
|
cartage.display "Removing packages from #{name}..."
|
145
|
+
delete_file Pathname("#{cartage.final_name}-release-hashref.txt")
|
145
146
|
delete_file cartage.final_release_metadata_json
|
146
147
|
cartage.plugins.request_map(:build_package, :package_name).each do |name|
|
147
148
|
delete_file name
|
data/test/test_cartage_s3.rb
CHANGED
@@ -134,7 +134,7 @@ Destination foo invalid: No provider present
|
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
137
|
-
it '
|
137
|
+
it 'uploads the release metadata and packages' do
|
138
138
|
expected_files.map! do |v|
|
139
139
|
Pathname("/a/b/c/tmp/#{v}")
|
140
140
|
end
|
@@ -152,7 +152,7 @@ Destination foo invalid: No provider present
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
-
it '
|
155
|
+
it 'downloads the release metadata and packages' do
|
156
156
|
expected_files.map! do |v|
|
157
157
|
Pathname("/a/b/c/tmp/#{v}")
|
158
158
|
end
|
@@ -203,7 +203,7 @@ Destination foo invalid: No provider present
|
|
203
203
|
end
|
204
204
|
}
|
205
205
|
|
206
|
-
it '
|
206
|
+
it 'shows only files related to the package' do
|
207
207
|
instance_stub subject.class, :connection, -> { connection } do
|
208
208
|
assert_output "#{files_test.join("\n")}\n" do
|
209
209
|
subject.list
|
@@ -211,7 +211,7 @@ Destination foo invalid: No provider present
|
|
211
211
|
end
|
212
212
|
end
|
213
213
|
|
214
|
-
it '
|
214
|
+
it '(true) shows all files' do
|
215
215
|
instance_stub subject.class, :connection, -> { connection } do
|
216
216
|
assert_output "#{files_all.join("\n")}\n" do
|
217
217
|
subject.list(true)
|
@@ -227,7 +227,8 @@ Destination foo invalid: No provider present
|
|
227
227
|
end
|
228
228
|
end
|
229
229
|
|
230
|
-
it '
|
230
|
+
it 'removes the release metadata and packages' do
|
231
|
+
expected_files.unshift('test-value-release-hashref.txt')
|
231
232
|
expected_files.map! do |v|
|
232
233
|
Pathname("/a/b/c/tmp/#{v}")
|
233
234
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartage-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cartage
|