vagrant/Rakefile

23 lines
555 B
Ruby
Raw Normal View History

2010-08-14 06:26:04 +00:00
require 'rubygems'
require 'bundler/setup'
require 'rake/testtask'
2010-08-14 06:26:04 +00:00
Bundler::GemHelper.install_tasks
task :default => :test
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
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."
end