capistrano-upload-archive 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce4e4a47475ba1793d301723deea204e02226581
4
- data.tar.gz: ef09f411f1d05ae4a729d80aeef7c8ceb6f9594b
3
+ metadata.gz: 20efbc1a076f10c1713449d8100fd6ce797cf5a4
4
+ data.tar.gz: 033ac5e440ec28b119062997f24e707986b8f247
5
5
  SHA512:
6
- metadata.gz: a146df54eea21a89acc2673f70c4415c2fc9713ebdc3690c72ca61a5a8fac6107d5b87e2112345a5e8324dae5887b4f98992b30b9a0de5f9e158cadd6a78f3ed
7
- data.tar.gz: b215ac830fd78039e15a937da7bb5ba18d48ba568b0f56c4a5d85907a08d4592b1f196ea911d4a6da297c22a8de78ce483fbecddf2f34a3598986daa43aa28ae
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.1"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-upload-archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simonas Serlinskas