Sha256: 119d490ddba7c9522b7065348930aefd1ed6ba26262eb91a241242396bdcd870

Contents?: true

Size: 677 Bytes

Versions: 3

Compression:

Stored size: 677 Bytes

Contents

require "bundler/gem_tasks"
require 'rdoc/task'
require 'rspec/core/rake_task'

desc "check documentation coverage"
task "rdoc:check" do 
  sh "rdoc -C " + Dir["lib/**/*.rb"].join(" ")
end

desc "clean up doco/coverage"
task :clean do
  sh "rm -fr rdoc coverage"
end

desc "generate documentation"
RDoc::Task.new :rdoc do |r|
  r.main = "README.rdoc"
  r.rdoc_files.include("README.rdoc", "lib/**/*.rb")
  r.rdoc_dir = "rdoc"
end

desc "Run specs"
RSpec::Core::RakeTask.new do |t|
  t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
  # Put spec opts in a file named .rspec in root
end

task :check => [:default, "rdoc:check"]
task :default => [:clean, :spec]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife_cookbook_dependencies-0.0.3 Rakefile
knife_cookbook_dependencies-0.0.2 Rakefile
knife_cookbook_dependencies-0.0.1 Rakefile