Class: FluentCommandBuilder::SevenZip::V920::ExtractWithFullPaths
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V920::ExtractWithFullPaths
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 = nil) ⇒ ExtractWithFullPaths
Returns a new instance of ExtractWithFullPaths.
448
449
450
451
452
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 448
def initialize(underlying_builder, archive, files=nil)
super underlying_builder
@b.append " x #{@b.format archive}"
@b.append " #{@b.format files}" unless files.nil?
end
|
Instance Method Details
#ai {|@b| ... } ⇒ Object
453
454
455
456
457
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 453
def ai
@b.append ' -ai'
yield @b if block_given?
self
end
|
#an {|@b| ... } ⇒ Object
458
459
460
461
462
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 458
def an
@b.append ' -an'
yield @b if block_given?
self
end
|
#ao {|@b| ... } ⇒ Object
463
464
465
466
467
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 463
def ao
@b.append ' -ao'
yield @b if block_given?
self
end
|
#ax {|@b| ... } ⇒ Object
468
469
470
471
472
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 468
def ax
@b.append ' -ax'
yield @b if block_given?
self
end
|
#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object
506
507
508
509
510
511
512
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 506
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
473
474
475
476
477
478
479
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 473
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
|
#output(dir_path) {|@b| ... } ⇒ Object
480
481
482
483
484
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 480
def output(dir_path)
@b.append " -o#{@b.format dir_path}"
yield @b if block_given?
self
end
|
#password(password) {|@b| ... } ⇒ Object
485
486
487
488
489
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 485
def password(password)
@b.append " -p#{@b.format_password password}"
yield @b if block_given?
self
end
|
#recursive(modifier = nil) {|@b| ... } ⇒ Object
490
491
492
493
494
495
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 490
def recursive(modifier=nil)
@b.append ' -r'
@b.append "#{@b.format modifier}" unless modifier.nil?
yield @b if block_given?
self
end
|
#type(archive_type) {|@b| ... } ⇒ Object
501
502
503
504
505
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 501
def type(archive_type)
@b.append " -t#{@b.format archive_type}"
yield @b if block_given?
self
end
|
#write_data_to_stdout {|@b| ... } ⇒ Object
496
497
498
499
500
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 496
def write_data_to_stdout
@b.append ' -so'
yield @b if block_given?
self
end
|
#y {|@b| ... } ⇒ Object
513
514
515
516
517
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 513
def y
@b.append ' -y'
yield @b if block_given?
self
end
|