harpoon 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/harpoon.gemspec +1 -1
- data/lib/harpoon/services/s3.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa024bb849b634fa48b7755ec9611da45f5b8fd5
|
4
|
+
data.tar.gz: c84079dd3da8aa6b36ea0f70664300608ac9979c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a4beafca2f0d09b702c4b4f5b19679f3f31a5961ce4a788fa99e1f70762dac55fe4a3b5670a8f51f41bd12354a17541f006303428c4129697228cd4f34f499
|
7
|
+
data.tar.gz: 9d16e833b97d6b974c97f25d1cf6ae1b6a0bc26ecffd5a32f008323c44f6008280df06346eb481f7eaf5a4ec71fdd45a97a1b0cfea254c1e173a9295d6bd8cb5
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Harpoon
|
2
|
-
A static site deployer, initially targeting Amazon s3
|
2
|
+
A static site deployer, initially targeting Amazon s3 and BitBalloon
|
3
3
|
|
4
4
|
This project is a work in progress, but it's already pretty functional and serves my purposes well. Feedback/issues/encouragement/complaints are all awesome and appreciated!
|
5
5
|
|
data/harpoon.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'harpoon'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.7'
|
4
4
|
s.date = '2014-08-20'
|
5
5
|
s.summary = "A single page app deployer for amazon s3"
|
6
6
|
s.description = "Deploy small server-less webapps to amazon s3, including buckets, dns and permissions"
|
data/lib/harpoon/services/s3.rb
CHANGED
@@ -248,7 +248,7 @@ module Harpoon
|
|
248
248
|
raise Harpoon::Errors::InvalidConfiguration, "Must have a primary domain defined" unless @options.primary_domain
|
249
249
|
@logger.info "Moving existing deploy to history"
|
250
250
|
current = s3.buckets[@options.primary_domain]
|
251
|
-
history = s3.buckets[
|
251
|
+
history = s3.buckets[rollback_bucket_name(@options.primary_domain)]
|
252
252
|
raise Harpoon::Errors::MissingSetup, "The expected buckets are not yet created, please try running harpoon setup" unless current.exists? && history.exists?
|
253
253
|
|
254
254
|
current_date = Time.now.to_i
|
@@ -262,7 +262,7 @@ module Harpoon
|
|
262
262
|
end
|
263
263
|
@logger.debug "Moved to history, deleting files from current bucket"
|
264
264
|
#delete the current objects
|
265
|
-
|
265
|
+
current.objects.delete_all
|
266
266
|
@logger.debug "Files deleted"
|
267
267
|
end
|
268
268
|
|