Class: RgGen::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/rggen/generator.rb

Defined Under Namespace

Classes: Context, Option

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsObject



53
54
55
# File 'lib/rggen/generator.rb', line 53

def options
  @options  ||= []
end

Instance Method Details

#run(argv) ⇒ Object



124
125
126
127
128
129
130
131
132
# File 'lib/rggen/generator.rb', line 124

def run(argv)
  Context.new.tap do |context|
    parse_options(argv, context)
    load_setup(context)
    load_configuration(context)
    load_register_map(context, argv.first)
    write_files(context)
  end
end