Class: Metanorma::Release::PackageCommand
- Inherits:
-
Object
- Object
- Metanorma::Release::PackageCommand
- Extended by:
- ConfigLoader
- Defined in:
- lib/metanorma/release/commands/package.rb
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(config) ⇒ PackageCommand
constructor
A new instance of PackageCommand.
Methods included from ConfigLoader
Constructor Details
#initialize(config) ⇒ PackageCommand
Returns a new instance of PackageCommand.
13 14 15 |
# File 'lib/metanorma/release/commands/package.rb', line 13 def initialize(config) @config = config end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/metanorma/release/commands/package.rb', line 17 def call config = self.class.load_config( config_source: @config.config_source, manifest: @config.manifest, ) deps = ReleasePipeline::Dependencies.new( extractor: RxlExtractor, filters: [], change_detector: ContentHashChangeDetector.new(previous_releases: {}, output_dir: @config.output_dir), packager: ZipPackager.new(output_dir: @config.output_dir), publisher: PlatformFactory.build_publisher("null", {}), slug_registry: SlugRegistry.from_config(config), manifest: nil, channel_override: nil, config: config, ) pipeline_config = ReleasePipeline::Config.new( output_dir: @config.output_dir, force: false, force_replace_patterns: nil, concurrency: 4, ) ReleasePipeline.new(deps).run(pipeline_config) end |