lib/tasks/exlibris-aleph_tasks.rake in exlibris-aleph-0.0.2 vs lib/tasks/exlibris-aleph_tasks.rake in exlibris-aleph-0.1.0

- old
+ new

@@ -1,13 +1,15 @@ -# desc "Explaining what the task does" -# task :exlibris:aleph do -# # Task goes here -# end namespace :exlibris do namespace :aleph do + desc "Initialize rake environment" + task :initialize do + Dir.glob("config/initializers/*.rb").each do |initializer| + require File.expand_path(File.join(Rails.root, initializer), __FILE__) + end + end desc "Refresh Aleph YAML Config" - task :refresh, [:aleph_mnt_path] => :environment do |t, args| + task :refresh => :initialize do Exlibris::Aleph::TabHelper.refresh_yml end end -emd +end \ No newline at end of file