Skip to content

Commit

Permalink
Do not automagically migrate db after install
Browse files Browse the repository at this point in the history
* It fixes [integrity#120 state:resolved]
* Thanks to Harry Vangberg and James Golick for their input
  • Loading branch information
sr committed Mar 31, 2009
1 parent 92cfd8f commit 2292554
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/integrity/installer.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion test/acceptance/installer_test.rb
Expand Up @@ -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?
Expand Down

0 comments on commit 2292554

Please sign in to comment.