drush-deploy 1.0.0.alpha1 → 1.0.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/drush-deploy.gemspec +1 -1
- data/lib/drush_deploy/capistrano.rb +7 -5
- data/lib/drush_deploy/database.rb +1 -1
- data/lib/drush_deploy/recipes/drupal.rb +3 -2
- data/lib/drush_deploy/recipes/setup.rb +1 -0
- metadata +8 -8
data/README.md
CHANGED
data/drush-deploy.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'drush-deploy'
|
3
|
-
s.version = '1.0.0.
|
3
|
+
s.version = '1.0.0.alpha2'
|
4
4
|
s.summary = "Deployment strategy for Drupal using Drush"
|
5
5
|
s.description = "Utilizes capistrano to allow for doing intellegent deployments of drupal projects."
|
6
6
|
s.authors = ["Matt Edlefsen"]
|
@@ -42,14 +42,16 @@ module DrushDeploy
|
|
42
42
|
|
43
43
|
servername = site["remote-user"]+'@'+servername if site["remote-user"]
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
if site["ssh-options"]
|
46
|
+
ssh_opts = site["ssh-options"].dup
|
47
|
+
if ssh_opts[:port]
|
48
|
+
servername += ':'+ssh_opts[:port].to_s
|
49
|
+
ssh_opts.delete :port
|
50
|
+
end
|
51
|
+
(attributes[:ssh_options] ||= {}).merge! ssh_opts
|
49
52
|
end
|
50
53
|
|
51
54
|
attributes = site["attributes"] || {}
|
52
|
-
(attributes[:ssh_options] ||= {}).merge! ssh_opts
|
53
55
|
roles = site["roles"]
|
54
56
|
unless roles
|
55
57
|
roles = DEFAULT_ROLES
|
@@ -166,7 +166,7 @@ module DrushDeploy
|
|
166
166
|
logger.info "Getting list of databases versions"
|
167
167
|
sql = %q{SELECT SCHEMA_NAME FROM information_schema.SCHEMATA
|
168
168
|
WHERE SCHEMA_NAME REGEXP '%{database}_[0-9]+';} % conf
|
169
|
-
remote_sql(sql, :config => conf, :capture => true).split(/\n/)[1..-1].sort.reverse
|
169
|
+
(remote_sql(sql, :config => conf, :capture => true).split(/\n/)[1..-1] || []).sort.reverse
|
170
170
|
end
|
171
171
|
|
172
172
|
def db_exists?(db = nil)
|
@@ -1,14 +1,15 @@
|
|
1
1
|
require 'drush_deploy/database'
|
2
2
|
|
3
3
|
before "deploy", "drupal:setup_build"
|
4
|
-
before "deploy", "drupal:
|
5
|
-
after "
|
4
|
+
before "deploy:symlink", "drupal:symlink"
|
5
|
+
after "drupal:symlink", "drupal:check_permissions"
|
6
6
|
after "deploy", "drupal:clearcache"
|
7
7
|
before "drupal:install_profile", "db:drupal:configure"
|
8
8
|
|
9
9
|
namespace :drupal do
|
10
10
|
desc "Symlink shared directories"
|
11
11
|
task :symlink, :roles => :web do
|
12
|
+
run "mkdir -p #{shared_path}/default/files || true"
|
12
13
|
run "ln -nfs #{shared_path}/default/files #{latest_release}/sites/default/files"
|
13
14
|
end
|
14
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drush-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.alpha2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &20016380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '2.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20016380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: railsless-deploy
|
27
|
-
requirement: &
|
27
|
+
requirement: &20015720 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *20015720
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: php_serialize
|
38
|
-
requirement: &
|
38
|
+
requirement: &20015000 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '1.2'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *20015000
|
47
47
|
description: Utilizes capistrano to allow for doing intellegent deployments of drupal
|
48
48
|
projects.
|
49
49
|
email: matt@xforty.com
|