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

Commit

Permalink
[RAKE] fixed error pointing from rails_root -> public -> themes too r…
Browse files Browse the repository at this point in the history
…ails_root -> themes
  • Loading branch information
Adam Dill committed Feb 10, 2009
1 parent 270f5f7 commit ee2a465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/ansuz.rake
Expand Up @@ -3,7 +3,7 @@ require "yaml"
namespace :ansuz do
desc "Set the CMS theme"
task(:choose_theme => :environment) do
themes = Dir.entries( File.join(RAILS_ROOT, "public", "themes")).select{|d| d =~ /^\w|^\d/}.collect{|theme| theme="- #{theme}"}
themes = Dir.entries( File.join(RAILS_ROOT, "themes")).select{|d| d =~ /^\w|^\d/}.collect{|theme| theme="- #{theme}"}
if( themes.any? )
STDOUT.puts "[ansuz] Themes:\n" + themes.join("\n")
STDOUT.puts "[ansuz] Enter a selection above, or leave blank for default"
Expand All @@ -19,6 +19,7 @@ namespace :ansuz do
else
STDOUT.puts "[ansuz] No themes available!"
end

end

# Called at the beginning of the initializer in config/environment.rb before Rails complains about not having a db"
Expand Down

0 comments on commit ee2a465

Please sign in to comment.