Module: Nidyx::Generator
Instance Method Summary collapse
-
#run(schema_path, options) ⇒ Object
The Nidyx model generator.
Instance Method Details
#run(schema_path, options) ⇒ Object
The Nidyx model generator. Called by the Nidyx CLI. Parses the input schema, creates models and writes them to the output directory.
14 15 16 17 18 19 |
# File 'lib/nidyx/generator.rb', line 14 def run(schema_path, ) schema = Nidyx::Reader.read(schema_path) raw_models = Nidyx::Parser.parse(schema, ) models = Nidyx::Mapper.map(raw_models, ) Nidyx::Output.write(models, [:output_directory]) end |