Module: Relish::ErrorMessages
- Defined in:
- lib/relish/error_messages.rb
Class Method Summary collapse
- .handle_blank ⇒ Object
- .help(pad = true) ⇒ Object
- .project_blank ⇒ Object
- .unknown_command ⇒ Object
- .version_blank ⇒ Object
Class Method Details
.handle_blank ⇒ Object
9 10 11 |
# File 'lib/relish/error_messages.rb', line 9 def handle_blank 'Please specify a new handle.' + help end |
.help(pad = true) ⇒ Object
21 22 23 |
# File 'lib/relish/error_messages.rb', line 21 def help(pad = true) (pad ? ' ' : '') + "Run 'relish help' for usage information." end |
.project_blank ⇒ Object
5 6 7 |
# File 'lib/relish/error_messages.rb', line 5 def project_blank 'Please specify a project.' + help end |
.unknown_command ⇒ Object
17 18 19 |
# File 'lib/relish/error_messages.rb', line 17 def unknown_command 'Unknown command.' + help end |
.version_blank ⇒ Object
13 14 15 |
# File 'lib/relish/error_messages.rb', line 13 def version_blank 'Please specify a version name.' + help end |