Class: DevSystem::SystemGenerator

Inherits:
SimpleGenerator show all
Defined in:
lib/dev_system/generators/system_generator.rb

Instance Attribute Summary

Attributes inherited from BaseGenerator

#env

Instance Method Summary collapse

Methods inherited from 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 BaseGenerator

#args, #call, call, #command, get_generator_signatures, #inform, #save

Methods inherited from Generator

get_generator_signatures

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_defaultObject

liza g system name color=coral



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/dev_system/generators/system_generator.rb', line 5

def call_default
  @name = command.simple_arg_ask_snakecase 0, "What is the name of the system you want to generate?"
  log "@name = #{@name}"

  @color = command.simple_color :color, string: "#{@name.camelize}System"
  log "@color = #{@color}"

  append_system_to_app
  create_system
  create_box
end