Class: Lutaml::Xsd::Commands::PackageCommand::ExtractCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/lutaml/xsd/commands/package_command.rb

Overview

Extract command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, schema_name, options) ⇒ ExtractCommand

Returns a new instance of ExtractCommand.



1065
1066
1067
1068
1069
# File 'lib/lutaml/xsd/commands/package_command.rb', line 1065

def initialize(package_file, schema_name, options)
  super(options)
  @package_file = package_file
  @schema_name = schema_name
end

Instance Method Details

#runObject



1071
1072
1073
1074
# File 'lib/lutaml/xsd/commands/package_command.rb', line 1071

def run
  validate_file_exists
  extract_schema
end