capistrano-wpcli 0.1.4 → 0.1.5

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: 7a39ba4c80d31494ec4ad6a98b6c734f496a4b29
4
- data.tar.gz: 1ed569cab40d7c8e712c1f26888ecc90a88f2729
3
+ metadata.gz: 61ef99871eb9c328be989cf84ae931c4f866600b
4
+ data.tar.gz: 69ef9c9ed45c1370ad92d2f34bb0952e5644f061
5
5
  SHA512:
6
- metadata.gz: 0a2a8523c70b437c2bdce596f85c982edfecdb2a402e03051516a723db9d600eac92f0f98fa2efa93c71bb11fbc11a2d8274877e377ca076f4065c190d69713d
7
- data.tar.gz: 5cc8e9adb392f11788e42a9329b471f47e0584fa23d06998173792f34145da11cc6483da5be80abb9358ef83881a7d2964ec63f94083beaf5191a5e1932fc18e
6
+ metadata.gz: f070f80eb28037770dc9a83a3df79e2cd1f1ecc0decef82270aefa966d36c43be4d6d0a02e2f7131d6d38481d89de5fc7c92de9ba7918701d4eda2128b3074ce
7
+ data.tar.gz: c9476546605d17f73bfc0e1429557a70ff667b064c54c60c41b92e19818ce9b5d51d3f9532e1e26d2e5ebac6b75cad81359679d6b74a1480641db762c534e9fc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-wpcli (0.1.3)
4
+ capistrano-wpcli (0.1.5)
5
5
  capistrano (~> 3.6)
6
6
  sshkit (~> 1.11)
7
7
 
@@ -37,6 +37,9 @@ namespace :wpcli do
37
37
  task :pull do
38
38
  roles(:web).each do |role|
39
39
  run_locally do
40
+ puts role.netssh_options[:port]
41
+ port = role.netssh_options[:port] || 22
42
+ set :wpcli_rsync_options, fetch(:wpcli_rsync_options) + (" -e 'ssh -p #{port}'")
40
43
  execute :rsync, fetch(:wpcli_rsync_options), "#{role.user}@#{role.hostname}:#{fetch(:wpcli_remote_uploads_dir)}", fetch(:wpcli_local_uploads_dir)
41
44
  end
42
45
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Wpcli
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-wpcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juancito Arias
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-22 00:00:00.000000000 Z
12
+ date: 2019-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  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.5.2
112
+ rubygems_version: 2.5.2.3
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Simple Capistrano wrapper around WP-CLI