Class: Scaffolder::Tool::Help
- Inherits:
-
Scaffolder::Tool
- Object
- Scaffolder::Tool
- Scaffolder::Tool::Help
- Includes:
- Scaffolder::ToolIndex
- Defined in:
- lib/scaffolder/tool/help.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.description ⇒ Object
6 7 8 |
# File 'lib/scaffolder/tool/help.rb', line 6 def self.description "Help information for scaffolder commands" end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/scaffolder/tool/help.rb', line 10 def execute raise_for_unknown(@settings[:unknown_tool]) if @settings[:unknown_tool] tool = settings.rest.first if tool raise_for_unknown(tool) unless tool_exists?(tool) man settings.rest.first elsif @settings[:version] return version else return help end end |