5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/textus/doctor/check/manifest_files.rb', line 5
def call
manifest.data.entries.each_with_object([]) do |entry, out|
next if entry.nested?
path = Textus::Key::Path.resolve(manifest.data, entry)
next if File.exist?(path)
out << {
"code" => "manifest.missing_file",
"level" => "info",
"subject" => entry.key,
"message" => "declared entry has no file on disk at #{path}",
"fix" => "create the entry with 'textus put #{entry.key} --stdin --as=<role>' " \
"(or leave empty if not yet authored)",
}
end
end
|