Class: Aries::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/aries/cli.rb

Instance Method Summary collapse

Instance Method Details

#generate(schema_file) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/aries/cli.rb', line 9

def generate schema_file
  Aries::Generator.generate(schema_file, {}.tap { |opt|
    opt[:output_path] = options[:output] if options[:output]
    opt[:class_name]  = options[:name]   if options[:name]
    opt[:base_url]    = options[:url]    if options[:url]
  })
end