examples/bivouac_sample/Rakefile in bivouac-0.2.2 vs examples/bivouac_sample/Rakefile in bivouac-0.2.3
- old
+ new
@@ -1,6 +1,13 @@
+#
+# Project BivouacSample
+#
+# Created using bivouac on Sat Apr 19 09:06:09 +0200 2008.
+# Copyright (c) 2008 __My__. All rights reserved.
+#
require 'rubygems'
+require 'rake/rdoctask'
require 'camping'
require 'camping/session'
require 'bivouac'
include Bivouac
@@ -43,6 +50,19 @@
session_table = 'session'
session_table = Inflector.pluralize(session_table) if ActiveRecord::Base.pluralize_table_names
ActiveRecord::Base.connection.execute "DELETE FROM #{session_table}"
end
end
+end
+
+namespace :plugin do
+ desc "List plugins"
+ task :list do
+ Dir.glob( filePath( __FILE__, 'plugins/**' ) ).each do |p|
+ pn = p.gsub( /.*\//, "" )
+ print " - #{pn} : "
+ Rake::Task["plugin:#{pn}:desc"].invoke
+ end
+ end
+
+ Dir.glob( filePath( __FILE__, 'plugins/**/tasks/**.rake' ) ).each { |p| load p }
end