Class: Metanorma::Release::AggregateCommand
- Inherits:
-
Object
- Object
- Metanorma::Release::AggregateCommand
- Defined in:
- lib/metanorma/release/commands/aggregate.rb
Defined Under Namespace
Classes: Config
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(config) ⇒ AggregateCommand
constructor
A new instance of AggregateCommand.
Constructor Details
#initialize(config) ⇒ AggregateCommand
Returns a new instance of AggregateCommand.
13 14 15 |
# File 'lib/metanorma/release/commands/aggregate.rb', line 13 def initialize(config) @config = config end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 |
# File 'lib/metanorma/release/commands/aggregate.rb', line 17 def call result = run_aggregation enrich(result) if result.documents.any? zip_output if @config.zip result end |