wordpress-deploy 1.0.0.rc5 → 1.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/lib/wordpress_deploy/cli/utility.rb +2 -2
- data/lib/wordpress_deploy/version.rb +1 -1
- data/spec/wordpress_deploy/cli/utility_spec.rb +2 -2
- metadata +6 -5
- data/.rvmrc +0 -48
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
wordpress-deploy
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-1.9.3-p392
|
@@ -63,10 +63,10 @@ includes PHP serialized strings).
|
|
63
63
|
to = WordpressDeploy::Environments.find to.to_sym
|
64
64
|
|
65
65
|
# Save the correct configuration file
|
66
|
-
|
66
|
+
to.save_wp_config
|
67
67
|
|
68
68
|
# Send the files in wp_dir
|
69
|
-
|
69
|
+
to.transfer.transmit!
|
70
70
|
|
71
71
|
# Save the to database locally
|
72
72
|
from.database.save!
|
@@ -34,8 +34,8 @@ describe WordpressDeploy::Cli::Utility do
|
|
34
34
|
WordpressDeploy::Environments.should_receive(:find).once.with(:development).and_return(from)
|
35
35
|
WordpressDeploy::Environments.should_receive(:find).once.with(:production).and_return(to)
|
36
36
|
|
37
|
-
|
38
|
-
|
37
|
+
to.should_receive(:save_wp_config)
|
38
|
+
to.stub_chain(:transfer, :transmit!)
|
39
39
|
from.stub_chain(:database, :save!)
|
40
40
|
from.stub_chain(:database, :send!).with(to)
|
41
41
|
from.stub_chain(:database, :migrate!).with(to)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wordpress-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc6
|
5
5
|
prerelease: 6
|
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:
|
12
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -166,7 +166,8 @@ extra_rdoc_files: []
|
|
166
166
|
files:
|
167
167
|
- .gitignore
|
168
168
|
- .rspec
|
169
|
-
- .
|
169
|
+
- .ruby-gemset
|
170
|
+
- .ruby-version
|
170
171
|
- .travis.yml
|
171
172
|
- Gemfile
|
172
173
|
- Guardfile
|
@@ -218,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
219
|
version: '0'
|
219
220
|
segments:
|
220
221
|
- 0
|
221
|
-
hash:
|
222
|
+
hash: 1205407767450735737
|
222
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
224
|
none: false
|
224
225
|
requirements:
|
@@ -227,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
228
|
version: 1.3.1
|
228
229
|
requirements: []
|
229
230
|
rubyforge_project:
|
230
|
-
rubygems_version: 1.8.
|
231
|
+
rubygems_version: 1.8.25
|
231
232
|
signing_key:
|
232
233
|
specification_version: 3
|
233
234
|
summary: Wordpress Deploy is a RubyGem, written for Linux and Mac OSX, that allows
|
data/.rvmrc
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
-
# development environment upon cd'ing into the directory
|
5
|
-
|
6
|
-
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
-
# Only full ruby name is supported here, for short names use:
|
8
|
-
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
-
environment_id="ruby-1.9.3-p194@wordpress-deploy"
|
10
|
-
|
11
|
-
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
-
# rvmrc_rvm_version="1.14.10 (stable)" # 1.10.1 seams as a safe start
|
13
|
-
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
-
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
-
# return 1
|
16
|
-
# }
|
17
|
-
|
18
|
-
# First we attempt to load the desired environment directly from the environment
|
19
|
-
# file. This is very fast and efficient compared to running through the entire
|
20
|
-
# CLI and selector. If you want feedback on which environment was used then
|
21
|
-
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
-
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
-
then
|
25
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
-
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
|
27
|
-
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
|
28
|
-
else
|
29
|
-
# If the environment file has not yet been created, use the RVM CLI to select.
|
30
|
-
rvm --create "$environment_id" || {
|
31
|
-
echo "Failed to create RVM environment '${environment_id}'."
|
32
|
-
return 1
|
33
|
-
}
|
34
|
-
fi
|
35
|
-
|
36
|
-
# If you use bundler, this might be useful to you:
|
37
|
-
# if [[ -s Gemfile ]] && {
|
38
|
-
# ! builtin command -v bundle >/dev/null ||
|
39
|
-
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
|
40
|
-
# }
|
41
|
-
# then
|
42
|
-
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
43
|
-
# gem install bundler
|
44
|
-
# fi
|
45
|
-
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
46
|
-
# then
|
47
|
-
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
|
48
|
-
# fi
|