History

Refactor docs.thor

Thibaut committed 13 years ago

Commit 0d7c1741 parent d38a5bc1 file · +7 −3Browse files

Unified · Split

lib/tasks/docs.thor+7−3
@@ -66,7 +66,7 @@ class DocsCLI < Thor · 65 unmodified lines
6666 end
6767
6868 if Docs.generate(name)
69− Docs.generate_manifest
69+ generate_manifest
7070 puts 'Done'
7171 else
7272 puts "Failed!#{' (try running with --debug for more information)' unless options[:debug]}"
@@ -77,7 +77,7 @@ class DocsCLI < Thor · 4 unmodified lines
7777
7878 desc 'manifest', 'Create the manifest'
7979 def manifest
80− Docs.generate_manifest
80+ generate_manifest
8181 puts 'Done'
8282 end
8383
@@ -88,7 +88,7 @@ class DocsCLI < Thor · 4 unmodified lines
8888 docs = options[:all] ? Docs.all : find_docs(names)
8989 assert_docs(docs)
9090 download_docs(docs)
91− Docs.generate_manifest
91+ generate_manifest
9292 puts 'Done'
9393 rescue Docs::DocNotFound => error
9494 invalid_doc(error.name)
@@ -179,4 +179,8 @@ class DocsCLI < Thor · 84 unmodified lines
179179 puts %(ERROR: can't find "#{doc.name}" documentation files.)
180180 end
181181 end
182+
183+ def generate_manifest
184+ Docs.generate_manifest
185+ end
182186 end