Class: Nutella::Template
- Inherits:
-
TemplateCommand
- Object
- Command
- TemplateCommand
- Nutella::Template
- Defined in:
- lib/commands/template.rb
Instance Method Summary collapse
Methods inherited from TemplateCommand
#validate_nutella_file_json, #validate_template
Instance Method Details
#run(args = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/commands/template.rb', line 8 def run(args=nil) # If no argument then we just display info about the command if args==nil || args.length < 2 display_help return end # Extract sub command sub_command = args[0] param = args[1] if sub_command == 'validate' validate_template_sub_command param end if sub_command == 'create' create_template_sub_command param end end |