Sha256: 972b2cacce409c26641a1d1a31014734fdfa4f192706d74d51abec16e8687e29

Contents?: true

Size: 1021 Bytes

Versions: 47

Compression:

Stored size: 1021 Bytes

Contents

# @note All options not specific to any given rake task should go in the .yardopts file so they are available to both
#   the below rake tasks and when invoking `yard` from the command line

if defined? YARD
  namespace :yard do
    YARD::Rake::YardocTask.new(:doc) do |t|
      # --no-stats here as 'stats' task called after will print fuller stats
      t.options = ['--no-stats']

      t.after = Proc.new {
        Rake::Task['yard:stats'].execute
      }
    end

    desc "Shows stats for YARD Documentation including listing undocumented modules, classes, constants, and methods"
    task :stats => :environment do
      stats = YARD::CLI::Stats.new
      stats.run('--compact', '--list-undoc')
    end
  end

  # @todo Figure out how to just clone description from yard:doc
  desc "Generate YARD documentation"
  # allow calling namespace to as a task that goes to default task for namespace
  task :yard => ['yard:doc']

  task :default => :yard
else
  puts 'YARD not defined, so yard tasks cannot be setup.'
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
metasploit-concern-0.4.0 lib/tasks/yard.rake
metasploit-concern-0.4.0.pre.app.pre.concerns.pre.eager.pre.load lib/tasks/yard.rake
metasploit-concern-0.3.1 lib/tasks/yard.rake
metasploit-concern-0.3.1.pre.autoload.pre.compatibility lib/tasks/yard.rake
metasploit-model-0.29.2 lib/tasks/yard.rake
metasploit-model-0.29.2-java lib/tasks/yard.rake
metasploit-model-0.29.0 lib/tasks/yard.rake
metasploit-model-0.29.0-java lib/tasks/yard.rake
metasploit-model-0.28.0 lib/tasks/yard.rake
metasploit-model-0.28.0-java lib/tasks/yard.rake
metasploit-concern-0.3.0 lib/tasks/yard.rake
metasploit-concern-0.3.0.pre.engine.pre.requires lib/tasks/yard.rake
metasploit-model-0.28.0.pre.engine.pre.requires lib/tasks/yard.rake
metasploit-model-0.27.4 lib/tasks/yard.rake
metasploit-model-0.27.4-java lib/tasks/yard.rake
metasploit-model-0.27.3 lib/tasks/yard.rake
metasploit-model-0.27.3-java lib/tasks/yard.rake
metasploit-model-0.27.2 lib/tasks/yard.rake
metasploit-model-0.27.2-java lib/tasks/yard.rake
metasploit-model-0.27.1 lib/tasks/yard.rake