bootstrap-db 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -65,7 +65,6 @@ Pass 'VERBOSE=true' if you'd like to see more information. For example:
65
65
 
66
66
 
67
67
  ## TODO (if we end up using this more)
68
-
69
68
  * This has been quickly rebuilt from a ridiculously old project of mine (http://github.com/tommeier/bootstrap). This should be refactored into proper objects and expose classes as well as rake tasks. Fully tested.
70
69
  * Proper mapping of parameter for dumping (eg. --username) to database config
71
70
  * List required attributes for each database (like `host` and raise on missing)
@@ -75,7 +75,7 @@ namespace :bootstrap do
75
75
  password_attrs = " -p#{settings["password"]}" if settings["password"]
76
76
  display_and_execute("mysql -f -h #{settings["host"]} -u #{settings["username"]}#{password_attrs.to_s} #{settings["database"]} < #{config.dump_path}")
77
77
  when :postgresql
78
- default_sql_attrs = "--exit-on-error --clean --single-transaction --format=c"
78
+ default_sql_attrs = "--clean --single-transaction --format=c"
79
79
  user_attribute = " --username=#{settings["username"]}" if settings['username']
80
80
  display_and_execute("pg_restore #{default_sql_attrs} --host=#{settings["host"]} --port=#{settings["port"] || 5432} --dbname=#{settings["database"]}#{user_attribute} #{config.dump_path}")
81
81
  else
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Db
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: