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