eycap 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,7 @@
1
- == 0.5.7 / 2009-6-17
1
+ == 0.5.8 / 2009-12-21
2
+ * updated database clone to local task - adding ability to use mysql2 adapter.
3
+
4
+ == 0.5.7 / 2009-12-21
2
5
  * updated database tasks - new xCloud infrastructure requires staging databases to use master not replica for tasks
3
6
 
4
7
  == 0.5.6 / 2009-6-17
data/lib/eycap.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eycap
2
- VERSION = '0.5.7'
3
- end
2
+ VERSION = '0.5.8'
3
+ end
@@ -39,7 +39,7 @@ Capistrano::Configuration.instance(:must_exist).load do
39
39
 
40
40
  if @environment_info['adapter'] == 'mysql'
41
41
  dbhost = @environment_info['host']
42
- if
42
+ if rails_env == "production"
43
43
  dbhost = environment_dbhost.sub('-master', '') + '-replica' if dbhost != 'localhost' # added for Solo offering, which uses localhost
44
44
  end
45
45
  run "mysqldump --add-drop-table -u #{dbuser} -h #{dbhost} -p #{environment_database} | gzip -c > #{backup_file}.gz" do |ch, stream, out |
@@ -58,7 +58,7 @@ Capistrano::Configuration.instance(:must_exist).load do
58
58
  dump
59
59
  get "#{backup_file}.gz", "/tmp/#{application}.sql.gz"
60
60
  development_info = YAML.load_file("config/database.yml")['development']
61
- if development_info['adapter'] == 'mysql'
61
+ if ['mysql', 'mysql2'].include? development_info['adapter']
62
62
  run_str = "gunzip < /tmp/#{application}.sql.gz | mysql -u #{development_info['username']} --password='#{development_info['password']}' -h #{development_info['host']} #{development_info['database']}"
63
63
  else
64
64
  run_str = "PGPASSWORD=#{development_info['password']} gunzip < /tmp/#{application}.sql.gz | psql -U #{development_info['username']} -h #{development_info['host']} #{development_info['database']}"
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: 5
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ version: 0.5.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Engine Yard