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.



561
562
563
564
# File 'lib/lutaml/xsd/commands/package_command.rb', line 561

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

Instance Method Details

#runObject



566
567
568
569
# File 'lib/lutaml/xsd/commands/package_command.rb', line 566

def run
  validate_file_exists
  perform_validation
end