Class: FluentCommandBuilder::SevenZip::V920::Test

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/sevenzip_920.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, archive, files) ⇒ Test

Returns a new instance of Test.



329
330
331
332
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 329

def initialize(underlying_builder, archive, files)
  super underlying_builder
  @b.append " t #{@b.format archive} #{@b.format files}"
end

Instance Method Details

#ai {|@b| ... } ⇒ Object

Yields:

  • (@b)


333
334
335
336
337
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 333

def ai
  @b.append ' -ai'
  yield @b if block_given?
  self
end

#an {|@b| ... } ⇒ Object

Yields:

  • (@b)


338
339
340
341
342
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 338

def an
  @b.append ' -an'
  yield @b if block_given?
  self
end

#ax {|@b| ... } ⇒ Object

Yields:

  • (@b)


343
344
345
346
347
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 343

def ax
  @b.append ' -ax'
  yield @b if block_given?
  self
end

#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


366
367
368
369
370
371
372
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 366

def exclude(file_ref, recurse_type=nil)
  @b.append ' -x'
  @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
  @b.append "#{@b.format file_ref}"
  yield @b if block_given?
  self
end

#include(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


348
349
350
351
352
353
354
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 348

def include(file_ref, recurse_type=nil)
  @b.append ' -i'
  @b.append "#{@b.format recurse_type}" unless recurse_type.nil?
  @b.append "#{@b.format file_ref}"
  yield @b if block_given?
  self
end

#password(password) {|@b| ... } ⇒ Object

Yields:

  • (@b)


355
356
357
358
359
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 355

def password(password)
  @b.append " -p#{@b.format_password password}"
  yield @b if block_given?
  self
end

#recursive(modifier = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


360
361
362
363
364
365
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 360

def recursive(modifier=nil)
  @b.append ' -r'
  @b.append "#{@b.format modifier}" unless modifier.nil?
  yield @b if block_given?
  self
end