Class: Textus::Doctor::Check::ManifestFiles
- Inherits:
-
Textus::Doctor::Check
- Object
- Textus::Doctor::Check
- Textus::Doctor::Check::ManifestFiles
- Defined in:
- lib/textus/doctor/check/manifest_files.rb
Instance Method Summary collapse
Methods inherited from Textus::Doctor::Check
Constructor Details
This class inherits a constructor from Textus::Doctor::Check
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/textus/doctor/check/manifest_files.rb', line 5 def call out = [] store.manifest.entries.each do |entry| next if entry.nested path = leaf_path_for(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 out end |