capistrano-s3_archive 0.1.2 → 0.2.0

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: 034eb3497d1b9782749dd2e5b2f9b70132e553ef
4
- data.tar.gz: f9d61496c77f8f921ce146592930be1b8bb27c15
3
+ metadata.gz: 3a65462e28020e98554628d02a2bc8a109970fa4
4
+ data.tar.gz: 361c7fe4058246b23d276252063257622c30e2b9
5
5
  SHA512:
6
- metadata.gz: 6750e7384a7ca6542bd6fd8212fa33371158be4781051547de578b4436d86697ce5949dec132b1bed9111e1c8444b99f64663c16d72b61a44b401e7deef1a329
7
- data.tar.gz: e151d5ff55c884fabd2a9fcaf147e6035bae78f3468bb3ca189beff6fe10f59db676676fc2b3525f69a9975c2e6ff0ca3ab9f8953f7b904c7bc6e99fba580aaa
6
+ metadata.gz: 2066614fc32d715b597ddac1a00db38d74ab33bb8b6558669031600ceeb58a1e1d7f0ec0ea43e9c227be29c95ee4b7ebb67aae96edfda652f98047b2c5b5539d
7
+ data.tar.gz: f133689db1b32b029505f5fb0064c91d24fd9ae9a7d9a8acf197a95129ee1b65751b00c7782a8d6950137b7136f04dc3beba3ebdc06ac07febd71adfd7b1dc5d
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module S3Archive
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -100,11 +100,12 @@ module Capistrano
100
100
  def release(server = context.host)
101
101
  user = server.user + '@' unless server.user.nil?
102
102
  key = server.keys.first || Array(server.ssh_options[:keys]).first
103
+ ssh_port_option = server.port.nil? ? '' : "-p #{server.port}"
103
104
 
104
105
  rsync = ['rsync']
105
106
  rsync.concat fetch(:rsync_options)
106
107
  rsync << fetch(:local_cache_dir) + '/'
107
- rsync << "-e 'ssh -i #{key}'"
108
+ rsync << "-e 'ssh -i #{key} #{ssh_port_option}'"
108
109
  rsync << "#{user}#{server.hostname}:#{rsync_cache || release_path}"
109
110
 
110
111
  run_locally do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-22 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.2.2
112
+ rubygems_version: 2.4.5
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Capistrano deployment from an archive on Amazon S3.