drush-deploy 1.0.11 → 1.0.12.pre1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- version 1.0.11
1
+ version 1.0.12
2
2
 
3
3
  ## DESCRIPTION
4
4
 
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.11'
3
+ s.version = '1.0.12.pre1'
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"]
@@ -129,8 +129,21 @@ module DrushDeploy
129
129
  $backup = '/tmp/default_settings_backup.php';
130
130
 
131
131
  $databases = unserialize('#{PHP.serialize(settings)}');
132
- $settings["databases"] = array( 'comment' => 'Generated by drush-deploy',
133
- 'value' => $databases );
132
+ $comment = 'Generated by drush-deploy';
133
+ $version = explode('.',drush_drupal_version());
134
+ if($version[0] < 7) {
135
+ $vals = $databases['default']['default'];
136
+ $db_url = sprintf('%s://%s:%s@%s:%s/%s',
137
+ $vals['driver'],$vals['username'],$vals['password'],
138
+ $vals['host'], $vals['port'], $vals['database']);
139
+ $settings["db_url"] = array( 'comment' => $comment,
140
+ 'value' => $db_url);
141
+ $settings["db_prefix"] = array( 'comment' => $comment,
142
+ 'value' => $vals['prefix']);
143
+ } else {
144
+ $settings["databases"] = array( 'comment' => $comment,
145
+ 'value' => $databases );
146
+ }
134
147
 
135
148
  require_once(DRUPAL_ROOT.'/includes/bootstrap.inc');
136
149
  require_once(DRUPAL_ROOT.'/includes/install.inc');
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drush-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
5
- prerelease:
4
+ version: 1.0.12.pre1
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Edlefsen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-10 00:00:00.000000000 Z
12
+ date: 2012-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -103,12 +103,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements:
106
- - - ! '>='
106
+ - - ! '>'
107
107
  - !ruby/object:Gem::Version
108
- version: '0'
108
+ version: 1.3.1
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 1.8.23
111
+ rubygems_version: 1.8.24
112
112
  signing_key:
113
113
  specification_version: 3
114
114
  summary: Deployment strategy for Drupal using Drush