Class: Lutaml::Xsd::Commands::PackageCommand::BuildCommand

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

Overview

Build command implementation

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(config_file, options) ⇒ BuildCommand

Returns a new instance of BuildCommand.



414
415
416
417
# File 'lib/lutaml/xsd/commands/package_command.rb', line 414

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

Instance Method Details

#runObject



419
420
421
422
# File 'lib/lutaml/xsd/commands/package_command.rb', line 419

def run
  validate_config_file
  build_package
end