Exception: NoEntryNameError

Inherits:
MakeEntryError show all
Defined in:
lib/joinfix/error.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from MakeEntryError

#entry

Attributes inherited from JoinFixError

#entry_name, #fixtures, #msg

Instance Method Summary collapse

Methods inherited from MakeEntryError

#initialize, #message

Methods inherited from JoinFixError

#initialize, new

Constructor Details

This class inherits a constructor from MakeEntryError

Instance Method Details

#adviceObject



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/joinfix/error.rb', line 66

def advice
	%Q{
This error occurs when an entry is not named as in:
---
john_doe:
 full_name: John Doe
 groups:
   # an entry name like 'admin_group' is missing here
   name: Administrators
   ...
   
Or sometimes if you have an error in your YAML:
---
john_doe:
 full_name: John Doe
 groups:
   - admin_group:
       name: Administrators
   - worker_group:
     name: Workers # this field is not properly indented
   ...}
end