wordmove 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mdown +1 -1
- data/lib/wordmove/deployer/base.rb +16 -10
- data/lib/wordmove/deployer/ssh.rb +1 -1
- data/lib/wordmove/version.rb +1 -1
- data/wordmove.gemspec +1 -1
- metadata +4 -4
data/README.mdown
CHANGED
@@ -91,7 +91,7 @@ staging:
|
|
91
91
|
Just not use the `remote.ssh.password` field on your `Movefile`. Easy peasy.
|
92
92
|
|
93
93
|
### If you want to specify SSH password on the Movefile
|
94
|
-
Please take a look at the various gotchas of the underlying [`photocopier` gem](https://github.com/
|
94
|
+
Please take a look at the various gotchas of the underlying [`photocopier` gem](https://github.com/welaika/photocopier#password-gotchas).
|
95
95
|
|
96
96
|
### How the heck you are able to sync the DB via FTP?
|
97
97
|
We're glad you asked! We basically upload via FTP a PHP script that performs the various
|
@@ -77,24 +77,30 @@ module Wordmove
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
def
|
81
|
-
{
|
82
|
-
:local_path => local_options[:wordpress_path],
|
83
|
-
:remote_path => remote_options[:wordpress_path],
|
84
|
-
:exclude_paths => paths_to_exclude.push(send("#{type}_wp_content_dir").relative_path)
|
85
|
-
}
|
80
|
+
def exclude_dir_contents(path)
|
81
|
+
"#{path}/*"
|
86
82
|
end
|
87
83
|
|
88
84
|
def push_wordpress
|
89
85
|
logger.task "Pushing wordpress core"
|
90
|
-
|
91
|
-
|
86
|
+
|
87
|
+
local_path = local_options[:wordpress_path]
|
88
|
+
remote_path = remote_options[:wordpress_path]
|
89
|
+
exclude_wp_content = exclude_dir_contents(local_wp_content_dir.relative_path)
|
90
|
+
exclude_paths = paths_to_exclude.push(exclude_wp_content)
|
91
|
+
|
92
|
+
remote_put_directory(local_path, remote_path, exclude_paths)
|
92
93
|
end
|
93
94
|
|
94
95
|
def pull_wordpress
|
95
96
|
logger.task "Pulling wordpress core"
|
96
|
-
|
97
|
-
|
97
|
+
|
98
|
+
local_path = local_options[:wordpress_path]
|
99
|
+
remote_path = remote_options[:wordpress_path]
|
100
|
+
exclude_wp_content = exclude_dir_contents(remote_wp_content_dir.relative_path)
|
101
|
+
exclude_paths = paths_to_exclude.push(exclude_wp_content)
|
102
|
+
|
103
|
+
remote_get_directory(remote_path, local_path, exclude_paths)
|
98
104
|
end
|
99
105
|
|
100
106
|
protected
|
@@ -53,7 +53,7 @@ module Wordmove
|
|
53
53
|
logger.task_step false, command
|
54
54
|
unless simulate?
|
55
55
|
stdout, stderr, exit_code = @copier.exec! command
|
56
|
-
raise "Error code #{exit_code} returned by command \"#{
|
56
|
+
raise "Error code #{exit_code} returned by command \"#{command}\": #{stderr}" unless exit_code.zero?
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
data/lib/wordmove/version.rb
CHANGED
data/wordmove.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_dependency "thor"
|
21
21
|
gem.add_dependency "activesupport"
|
22
22
|
gem.add_dependency "i18n"
|
23
|
-
gem.add_dependency "photocopier", ">= 0.0.
|
23
|
+
gem.add_dependency "photocopier", ">= 0.0.7"
|
24
24
|
|
25
25
|
gem.add_development_dependency "rspec"
|
26
26
|
gem.add_development_dependency "cucumber"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordmove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03
|
12
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colored
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ! '>='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.0.
|
101
|
+
version: 0.0.7
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.0.
|
109
|
+
version: 0.0.7
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: rspec
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|