Class: FluentCommandBuilder::SevenZip::V920::Update
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V920::Update
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) ⇒ Update
Returns a new instance of Update.
374
375
376
377
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 374
def initialize(underlying_builder, archive, files)
super underlying_builder
@b.append " u #{@b.format archive} #{@b.format files}"
end
|
Instance Method Details
#compress_files_open_for_writing {|@b| ... } ⇒ Object
418
419
420
421
422
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 418
def compress_files_open_for_writing
@b.append ' -ssw'
yield @b if block_given?
self
end
|
#create_sfx_archive(sfx_module = nil) {|@b| ... } ⇒ Object
401
402
403
404
405
406
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 401
def create_sfx_archive(sfx_module=nil)
@b.append ' -sfx'
@b.append "#{@b.format sfx_module}" unless sfx_module.nil?
yield @b if block_given?
self
end
|
#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object
439
440
441
442
443
444
445
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 439
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
378
379
380
381
382
383
384
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 378
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
390
391
392
393
394
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 390
def password(password)
@b.append " -p#{@b.format_password password}"
yield @b if block_given?
self
end
|
#read_data_from_stdin(file_name = nil) {|@b| ... } ⇒ Object
407
408
409
410
411
412
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 407
def read_data_from_stdin(file_name=nil)
@b.append ' -si'
@b.append "#{@b.format file_name}" unless file_name.nil?
yield @b if block_given?
self
end
|
#recursive(modifier = nil) {|@b| ... } ⇒ Object
395
396
397
398
399
400
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 395
def recursive(modifier=nil)
@b.append ' -r'
@b.append "#{@b.format modifier}" unless modifier.nil?
yield @b if block_given?
self
end
|
#set_compression_method(method_parameters) {|@b| ... } ⇒ Object
385
386
387
388
389
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 385
def set_compression_method(method_parameters)
@b.append " -m#{@b.format method_parameters}"
yield @b if block_given?
self
end
|
#type(archive_type) {|@b| ... } ⇒ Object
423
424
425
426
427
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 423
def type(archive_type)
@b.append " -t#{@b.format archive_type}"
yield @b if block_given?
self
end
|
#update_options(args) {|@b| ... } ⇒ Object
428
429
430
431
432
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 428
def update_options(args)
@b.append " -u#{@b.format args}"
yield @b if block_given?
self
end
|
#working_dir(dir_path = nil) {|@b| ... } ⇒ Object
433
434
435
436
437
438
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 433
def working_dir(dir_path=nil)
@b.append ' -w'
@b.append "#{@b.format dir_path}" unless dir_path.nil?
yield @b if block_given?
self
end
|
#write_data_to_stdout {|@b| ... } ⇒ Object
413
414
415
416
417
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 413
def write_data_to_stdout
@b.append ' -so'
yield @b if block_given?
self
end
|