namespace :tooltip do task :desc do puts "Tooltip plugin for Bivouac." puts "2.1.0" end desc "Install Tooltip Plugin" task :install do Dir.glob( filePath( __FILE__, '../copy_on_install/public/**/**.*' ) ).each do |src| dest = (ENV['BIVOUAC_ROOT'] or BIVOUAC_ROOT) + "/public/" + src.gsub( /^.*\/([^\/]*\/.*\..*)$/, '\1' ) puts "Install #{dest}" FileUtils::cp( src, dest ) end end desc "Generate tooltip Documentation" Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'plugins/tooltip/doc' rdoc.options += ['--quiet', "--opname", "index.html", "--line-numbers", "--inline-source"] rdoc.main = "plugins/tooltip/README" rdoc.title = "tooltip, the Documentation" rdoc.rdoc_files.add ['plugins/tooltip/README', 'plugins/tooltip/INSTALL', 'plugins/tooltip/LICENCE', 'plugins/tooltip/lib/tooltip/view_helpers.rb'] end end