Class: Lutaml::Xsd::Commands::PackageCommand::ValidateCommand

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

Overview

Validate command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_file, options) ⇒ ValidateCommand

Returns a new instance of ValidateCommand.



558
559
560
561
# File 'lib/lutaml/xsd/commands/package_command.rb', line 558

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

Instance Method Details

#runObject



563
564
565
566
# File 'lib/lutaml/xsd/commands/package_command.rb', line 563

def run
  validate_file_exists
  perform_validation
end