|
|
@ -175,12 +175,12 @@ class DocsCLI < Thor
|
|
|
|
|
|
|
|
|
|
|
|
# Verify files are present
|
|
|
|
# Verify files are present
|
|
|
|
docs.each do |doc|
|
|
|
|
docs.each do |doc|
|
|
|
|
unless Dir.exists?(File.join(Docs.store_path, doc.path))
|
|
|
|
unless Dir.exist?(File.join(Docs.store_path, doc.path))
|
|
|
|
puts "ERROR: directory #{File.join(Docs.store_path, doc.path)} not found."
|
|
|
|
puts "ERROR: directory #{File.join(Docs.store_path, doc.path)} not found."
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
unless File.exists?(File.join(Docs.store_path, "#{doc.path}.tar.gz"))
|
|
|
|
unless File.exist?(File.join(Docs.store_path, "#{doc.path}.tar.gz"))
|
|
|
|
puts "ERROR: package for '#{doc.slug}' documentation not found. Run 'thor docs:package #{doc.slug}' to create it."
|
|
|
|
puts "ERROR: package for '#{doc.slug}' documentation not found. Run 'thor docs:package #{doc.slug}' to create it."
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|