Module: RubyToUML::CLI

Defined in:
lib/ruby_to_uml/cli.rb

Class Method Summary collapse

Class Method Details

.start(arguments) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/ruby_to_uml/cli.rb', line 3

def self.start(arguments)
  abort('Usage: ruby_to_uml [source directory or file]') if arguments.empty?
  file_paths = PathTransformer.transform_files_and_or_directories_paths_to_file_paths(arguments)
  uml_info = UMLInfoGenerator.process_files(file_paths)
  dsl = NomnomlDSLGenerator.generate_dsl(uml_info)
  UMLDiagramRenderer.create_diagram(dsl.to_s)
end