Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
[INSTALLER] identified a couple weird isues with silence stream causi…
Browse files Browse the repository at this point in the history
…ng errors
  • Loading branch information
Adam Dill committed Feb 16, 2009
1 parent f4c436e commit b786413
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/ansuz/installer.rb
Expand Up @@ -92,25 +92,25 @@ def create_db_config(database_yaml_path = File.join(RAILS_ROOT, "config", "datab

def install
unless( File.exists?( File.join(RAILS_ROOT, "config", "database.yml") ) )
#@stdout.puts "[ansuz] Please create a config/database.yml file before running this task."
#return false
create_db_config
end

@stdout.puts "[ansuz] Creating database .."
Kernel.silence_stream(@stdout) do
create_database
end

# FIXME: The Silence_stream call is causing sql errors, who knows why.
@stdout.puts "[ansuz] Migrating tables .."
Kernel.silence_stream(@stdout) do
# Kernel.silence_stream(@stdout) do
migrate_database
end
# end

# FIXME: /Users/altrux/isshen/ansuz/ansuz/app/helpers/plugins_helper.rb when the silence streams are uncommented
@stdout.puts "[ansuz] Migrating plugins .."
Kernel.silence_stream(@stdout) do
# Kernel.silence_stream(@stdout) do
migrate_plugins
end
# end

# Create public/uploads directory for FCKeditor
create_fckeditor_uploads_dir
Expand Down Expand Up @@ -162,7 +162,6 @@ def create_fckeditor_uploads_dir
end
end

# FIXME: Somthing is causing this to be currently broken, should be fixed!
def create_database
@state = :creating_databases
system "rake db:create:all"
Expand Down

0 comments on commit b786413

Please sign in to comment.