Permalink
Browse files

Do not automagically migrate db after install

* It fixes [#120 state:resolved]
* Thanks to Harry Vangberg and James Golick for their input
  • Loading branch information...
1 parent 92cfd8f commit 2292554fb443b6402848eb3645b502cf8a4fc2a0 @sr sr committed Mar 31, 2009
Showing with 9 additions and 2 deletions.
  1. +5 −1 lib/integrity/installer.rb
  2. +4 −1 test/acceptance/installer_test.rb
View
6 lib/integrity/installer.rb
@@ -21,7 +21,6 @@ def install(path)
create_dir_structure
copy_template_files
edit_template_files
- migrate_db(root.join("config.yml"))
puts post_install_message
end
end
@@ -109,6 +108,11 @@ def post_install_message
<<EOF
Awesome! Integrity was installed successfully!
+To complete the installation, please configure the `database_uri` in
+#{root.join("config.yml")} and install the matching DataMapper adapter if
+necessary. Then, run `integrity migrate_db #{root.join("config.yml")}
+
+== Notifiers
If you want to enable notifiers, install the gems and then require them
in #{root}/config.ru
View
5 test/acceptance/installer_test.rb
@@ -24,7 +24,10 @@ def install(option="")
end
scenario "Installing integrity into a given directory" do
- assert install.include?("Awesome")
+ post_install_message = install
+
+ assert post_install_message.include?("Awesome")
+ assert post_install_message.include?("integrity migrate_db #{root.join("config.yml")}")
assert root.join("builds").directory?
assert root.join("log").directory?

0 comments on commit 2292554

Please sign in to comment.