Class: HappySystem::AxoGenerator
- Inherits:
-
DevSystem::SimpleGenerator
- Object
- Liza::Unit
- Liza::Controller
- DevSystem::Generator
- DevSystem::BaseGenerator
- DevSystem::SimpleGenerator
- HappySystem::AxoGenerator
- Defined in:
- lib/happy_system/sub/axo/generators/axo_generator.rb
Instance Attribute Summary
Attributes inherited from DevSystem::BaseGenerator
Instance Method Summary collapse
-
#call_default ⇒ Object
liza g axo name place=app.
Methods inherited from DevSystem::SimpleGenerator
#add_change, #changes, #copy_examples, #copy_file, #copy_files, #create_controller, #create_file, #create_unit, #inform, #last_change, #name!, #place!, #puts_line, #save
Methods inherited from DevSystem::BaseGenerator
#args, #call, call, #command, get_generator_signatures, #inform, #save
Methods inherited from DevSystem::Generator
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Instance Method Details
#call_default ⇒ Object
liza g axo name place=app
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/happy_system/sub/axo/generators/axo_generator.rb', line 5 def call_default @controller_class = Axo name! place! @description = TtyInputCommand.prompt.ask("Do you want to add a description?", default: "No description") @args = command.simple_args[1..-1] create_controller @name, @controller_class, @place, @path do |unit, test| unit.section :controller_section_1, caption: "" test.section :controller_test_section_1, caption: "" end end |