Showing the changes to lib (1 of 2 files). Show all
Unified · Split
| @@ -106,6 +106,12 @@ class DocsCLI < Thor · 105 unmodified lines | |||
| 106 | invalid_doc(error.name) | 106 | invalid_doc(error.name) |
| 107 | end | 107 | end |
| 108 | 108 | ||
| 109 | desc 'clean', 'Delete documentation packages' | ||
| 110 | def clean | ||
| 111 | File.delete(*Dir[File.join Docs.store_path, '*.tar.gz']) | ||
| 112 | puts 'Done' | ||
| 113 | end | ||
| 114 | |||
| 109 | private | 115 | private |
| 110 | 116 | ||
| 111 | def find_docs(names) | 117 | def find_docs(names) |