eycap 0.5.14 → 0.5.15

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.5.15 / 2011-04-08
2
+ * Added mysql2 support for database clone recipes.
3
+
1
4
  == 0.5.14 / 2011-04-06
2
5
  * Added resque recipe.
3
6
 
@@ -19,7 +19,7 @@ Capistrano::Configuration.instance(:must_exist).load do
19
19
  run("cat #{shared_path}/config/database.yml") { |channel, stream, data| @environment_info = YAML.load(data)[rails_env] }
20
20
  dump
21
21
 
22
- if @environment_info['adapter'] == 'mysql'
22
+ if ['mysql', 'mysql2'].include? @environment_info['adapter']
23
23
  run "gunzip < #{backup_file}.gz | mysql -u #{dbuser} -p -h #{staging_dbhost} #{staging_database}" do |ch, stream, out|
24
24
  ch.send_data "#{dbpass}\n" if out=~ /^Enter password:/
25
25
  end
@@ -37,7 +37,7 @@ Capistrano::Configuration.instance(:must_exist).load do
37
37
  on_rollback { run "rm -f #{backup_file}" }
38
38
  run("cat #{shared_path}/config/database.yml") { |channel, stream, data| @environment_info = YAML.load(data)[rails_env] }
39
39
 
40
- if @environment_info['adapter'] == 'mysql'
40
+ if ['mysql', 'mysql2'].include? @environment_info['adapter']
41
41
  dbhost = @environment_info['host']
42
42
  if rails_env == "production"
43
43
  dbhost = environment_dbhost.sub('-master', '') + '-replica' if dbhost != 'localhost' # added for Solo offering, which uses localhost
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eycap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 14
10
- version: 0.5.14
9
+ - 15
10
+ version: 0.5.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Engine Yard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-06 00:00:00 -06:00
18
+ date: 2011-04-08 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency