capistrano-upload-archive 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20efbc1a076f10c1713449d8100fd6ce797cf5a4
|
4
|
+
data.tar.gz: 033ac5e440ec28b119062997f24e707986b8f247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09ab9fd0bb65ebf2d546a7b6539ec2bdabcb3bb7aaf64b219c45d5b4da36c57a9b926de68bb0d07087d3aafe6c5c8771026754aebe438dbe9f89c1c8d0fcf9d0
|
7
|
+
data.tar.gz: 58e476229fe2a05eb88ea7689c4e328f4d6aa6e8377e2c3274e9cb6b94334ccd848991320d744496b2131d9eb901eaa525e3864a5145508fc3182b2aa6eac436
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "capistrano-upload-archive"
|
5
|
-
gem.version = "0.0.
|
5
|
+
gem.version = "0.0.2"
|
6
6
|
gem.authors = ["Simonas Serlinskas"]
|
7
7
|
gem.email = ["simonas.serlinskas@gmail.com"]
|
8
8
|
gem.homepage = "https://github.com/saimaz/capistrano-upload-archive"
|
@@ -25,10 +25,18 @@ module Capistrano
|
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
28
|
+
def filename
|
29
|
+
#@filename ||= File.join(File.basename(configuration[:release_path]), configuration[:repository])
|
30
|
+
@filename ||= File.expand_path(configuration[:repository], Dir.pwd)
|
31
|
+
end
|
32
|
+
def remote_filename
|
33
|
+
@remote_filename ||= File.join(configuration[:release_path], configuration[:repository])
|
34
|
+
end
|
28
35
|
# Distributes the file to the remote hosts.
|
29
36
|
def distribute!
|
30
37
|
args = [ filename, remote_filename ]
|
31
38
|
args << { :via => configuration[:copy_via] } if configuration[:copy_via]
|
39
|
+
run "mkdir #{configuration[:release_path]}"
|
32
40
|
upload(*args)
|
33
41
|
end
|
34
42
|
end
|