Sha256: a7b3a691e44c841fc8dfe959937e250de7a5b725868d1cb00a1246178d2a32b2

Contents?: true

Size: 365 Bytes

Versions: 31

Compression:

Stored size: 365 Bytes

Contents

# encoding: utf-8

desc 'Remove output files generated by nanoc'
task :clean do
  # Load site
  site = Nanoc::Site.new('.')
  if site.nil?
    $stderr.puts 'The current working directory does not seem to be a ' +
                 'valid/complete nanoc site directory; aborting.'
    exit 1
  end

  # Clean
  clean = ::Nanoc::Tasks::Clean.new(site)
  clean.run
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
nanoc-3.4.2 lib/nanoc/tasks/clean.rake
nanoc-3.4.1 lib/nanoc/tasks/clean.rake
nanoc-3.4.0 lib/nanoc/tasks/clean.rake
nanoc-3.3.7 lib/nanoc/tasks/clean.rake
nanoc-3.3.6 lib/nanoc/tasks/clean.rake
nanoc-3.3.5 lib/nanoc/tasks/clean.rake
nanoc-3.3.4 lib/nanoc/tasks/clean.rake
nanoc-3.3.3 lib/nanoc/tasks/clean.rake
nanoc-3.3.2 lib/nanoc/tasks/clean.rake
nanoc-3.3.1 lib/nanoc/tasks/clean.rake
nanoc-3.3.0 lib/nanoc/tasks/clean.rake