diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index f8b02b5d..b68df46e 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -66,7 +66,7 @@ class DocsCLI < Thor end if Docs.generate(name) - Docs.generate_manifest + generate_manifest puts 'Done' else puts "Failed!#{' (try running with --debug for more information)' unless options[:debug]}" @@ -77,7 +77,7 @@ class DocsCLI < Thor desc 'manifest', 'Create the manifest' def manifest - Docs.generate_manifest + generate_manifest puts 'Done' end @@ -88,7 +88,7 @@ class DocsCLI < Thor docs = options[:all] ? Docs.all : find_docs(names) assert_docs(docs) download_docs(docs) - Docs.generate_manifest + generate_manifest puts 'Done' rescue Docs::DocNotFound => error invalid_doc(error.name) @@ -179,4 +179,8 @@ class DocsCLI < Thor puts %(ERROR: can't find "#{doc.name}" documentation files.) end end + + def generate_manifest + Docs.generate_manifest + end end