Class: ChefRake::Task::Doc

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/chef/raketasks/doc.rb

Instance Method Summary collapse

Constructor Details

#initializeDoc

Returns a new instance of Doc.



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/chef/raketasks/doc.rb', line 23

def initialize
  super

  desc 'Generate Ruby documentation'
  task :doc do
    require 'yaml'
    require 'yard'
    YARD::Rake::YardocTask.new do |t|
      t.stats_options = %w[--list-undoc]
    end
  end

end