Class: RgGen::Generator
- Inherits:
-
Object
- Object
- RgGen::Generator
- Defined in:
- lib/rggen/generator.rb
Defined Under Namespace
Classes: Context
Instance Method Summary collapse
Instance Method Details
#run(argv) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rggen/generator.rb', line 5 def run(argv) Context.new.tap do |context| (argv, context) load_setup(context) load_configuration(context) load_register_map(context, argv) write_files(context) end rescue RgGen::RuntimeError, OptionParser::ParseError => e abort "[#{e.class.lastname}] #{e.}" end |