Add docs:clean task for deleting documentation packages

pull/10/head
Thibaut 11 years ago
parent 0d7c174d75
commit fcaf9879a8

@ -102,6 +102,7 @@ thor docs:manifest # Create the manifest file used by the app
thor docs:generate # Generate/scrape a documentation
thor docs:page # Generate/scrape a documentation page
thor docs:package # Package a documentation for use with docs:download
thor docs:clean # Delete documentation packages
# Console
thor console # Start a REPL

@ -106,6 +106,12 @@ class DocsCLI < Thor
invalid_doc(error.name)
end
desc 'clean', 'Delete documentation packages'
def clean
File.delete(*Dir[File.join Docs.store_path, '*.tar.gz'])
puts 'Done'
end
private
def find_docs(names)

Loading…
Cancel
Save