Module: FluentCommandBuilder::SevenZip::V920

Defined in:
lib/fluent_command_builder/command_builders/sevenzip_920.rb

Defined Under Namespace

Classes: Add, Bench, Delete, Extract, ExtractWithFullPaths, List, SevenZip, Test, Update

Constant Summary collapse

VERSION =
'9.20'
@@config =
CommandBuilderConfig.new FluentCommandBuilder::SevenZip::COMMAND_NAME, VERSION

Instance Method Summary collapse

Instance Method Details

#configure_sevenzip {|@@config| ... } ⇒ Object

Yields:

  • (@@config)


12
13
14
15
16
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 12

def configure_sevenzip
  yield @@config
  @@config.validate_path
  @@config.validate_version
end

#sevenzip {|b| ... } ⇒ Object

Yields:

  • (b)


17
18
19
20
21
22
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 17

def sevenzip
  b = UnderlyingBuilder.new @@config
  c = SevenZip.new(b)
  yield b if block_given?
  c
end