2010-08-14 06:26:04 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler/setup'
|
2010-01-22 03:09:18 +00:00
|
|
|
require 'rake/testtask'
|
2010-08-14 06:26:04 +00:00
|
|
|
Bundler::GemHelper.install_tasks
|
2010-01-22 03:09:18 +00:00
|
|
|
|
2010-07-24 01:28:33 +00:00
|
|
|
task :default => :test
|
2010-02-10 06:48:08 +00:00
|
|
|
|
2010-01-22 03:09:18 +00:00
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.libs << "test"
|
2010-01-22 05:08:55 +00:00
|
|
|
t.pattern = 'test/**/*_test.rb'
|
2010-01-22 05:07:01 +00:00
|
|
|
end
|
2010-03-04 07:14:06 +00:00
|
|
|
|
|
|
|
begin
|
|
|
|
require 'yard'
|
|
|
|
YARD::Rake::YardocTask.new do |t|
|
|
|
|
t.options = ['--main', 'README.md', '--markup', 'markdown']
|
|
|
|
t.options += ['--title', 'Vagrant Developer Documentation']
|
|
|
|
end
|
|
|
|
rescue LoadError
|
|
|
|
puts "Yard not available. Install it with: gem install yard"
|
|
|
|
puts "if you wish to be able to generate developer documentation."
|
2010-03-09 16:25:16 +00:00
|
|
|
end
|