We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7828802 commit 436a98aCopy full SHA for 436a98a
lib/tasks/docs.thor
@@ -174,6 +174,19 @@ class DocsCLI < Thor
174
175
assert_docs(docs)
176
177
+ # Verify files are present
178
+ docs.each do |doc|
179
+ unless Dir.exists?(File.join(Docs.store_path, doc.path))
180
+ puts "ERROR: directory #{File.join(Docs.store_path, doc.path)} not found."
181
+ return
182
+ end
183
+
184
+ unless File.exists?(File.join(Docs.store_path, "#{doc.path}.tar.gz"))
185
+ puts "ERROR: package for '#{doc.slug}' documentation not found. Run 'thor docs:package #{doc.slug}' to create it."
186
187
188
189
190
# Sync files with S3 (used by the web app)
191
puts '[S3] Begin syncing.'
192
docs.each do |doc|
0 commit comments