| Class | Sprout::TaskParam |
| In: |
sprout/lib/sprout/tasks/tool_task.rb
|
| Parent: | Object |
The base class for all ToolTask parameters. This class is extended by a variety of concrete implementations.
At the time of this writing, only the :boolean TaskParam modifies the interface by adding the show_on_false attribute.
Some other helpful features are as follows:
:file, :files, :path and :paths will all add any items that have been added to their values as file task prerequisites. This is especially helpful when writing rake tasks for Command Line Interface (CLI) compilers.
| belongs_to | [RW] | |
| delimiter | [W] | |
| description | [RW] | |
| file_expression | [W] |
Set the file_expression (blob) to append to each path in order to build the
prerequisites FileList.
Defaults to parent ToolTask.default_file_expression |
| hidden_name | [RW] | |
| hidden_value | [RW] | |
| name | [RW] | |
| prefix | [W] | |
| preprocessable | [RW] | |
| required | [RW] | |
| shell_name | [W] | |
| type | [RW] | |
| validator | [RW] | |
| value | [W] | |
| visible | [RW] |
ToolParams join their name/value pair with an equals sign by default, this can be modified To a space or whatever you wish
Should the param value be hidden from the shell? Usually used for Boolean toggles like ’-debug‘
Leading character for each parameter Can sometimes be an empty string, other times it‘s a double dash ’—’ but usually it‘s just a single dash ’-’
Create a string that can be turned into a file that rdoc can parse to describe the customized or generated task using param name, type and description