Class: Metanorma::Release::AggregateCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/metanorma/release/commands/aggregate.rb

Defined Under Namespace

Classes: Config

Instance Method Summary collapse

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

#callObject



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