Class: FluentCommandBuilder::SevenZip::V92::Update
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V92::Update
- Defined in:
- lib/fluent_command_builder/command_builders/sevenzip_92.rb
Instance Method Summary collapse
- #compress_files_open_for_writing {|@builder| ... } ⇒ Object
- #create_sfx_archive(sfx_module = nil) {|@builder| ... } ⇒ Object
- #exclude(file_ref, recurse_type = nil) {|@builder| ... } ⇒ Object
- #include(file_ref, recurse_type = nil) {|@builder| ... } ⇒ Object
-
#initialize(builder, archive, files) ⇒ Update
constructor
A new instance of Update.
- #password(password) {|@builder| ... } ⇒ Object
- #read_data_from_stdin(file_name = nil) {|@builder| ... } ⇒ Object
- #recursive(modifier = nil) {|@builder| ... } ⇒ Object
- #set_compression_method(method_parameters) {|@builder| ... } ⇒ Object
- #type(archive_type) {|@builder| ... } ⇒ Object
- #update_options(args) {|@builder| ... } ⇒ Object
- #working_dir(dir_path = nil) {|@builder| ... } ⇒ Object
- #write_data_to_stdout {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, archive, files) ⇒ Update
Returns a new instance of Update.
359 360 361 362 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 359 def initialize(builder, archive, files) super builder @builder.append " u #{@builder.format archive} #{@builder.format files}" end |
Instance Method Details
#compress_files_open_for_writing {|@builder| ... } ⇒ Object
403 404 405 406 407 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 403 def compress_files_open_for_writing @builder.append ' -ssw' yield @builder if block_given? self end |
#create_sfx_archive(sfx_module = nil) {|@builder| ... } ⇒ Object
386 387 388 389 390 391 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 386 def create_sfx_archive(sfx_module=nil) @builder.append ' -sfx' @builder.append "#{@builder.format sfx_module}" unless sfx_module.nil? yield @builder if block_given? self end |
#exclude(file_ref, recurse_type = nil) {|@builder| ... } ⇒ Object
424 425 426 427 428 429 430 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 424 def exclude(file_ref, recurse_type=nil) @builder.append ' -x' @builder.append "#{@builder.format recurse_type}" unless recurse_type.nil? @builder.append "#{@builder.format file_ref}" yield @builder if block_given? self end |
#include(file_ref, recurse_type = nil) {|@builder| ... } ⇒ Object
363 364 365 366 367 368 369 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 363 def include(file_ref, recurse_type=nil) @builder.append ' -i' @builder.append "#{@builder.format recurse_type}" unless recurse_type.nil? @builder.append "#{@builder.format file_ref}" yield @builder if block_given? self end |
#password(password) {|@builder| ... } ⇒ Object
375 376 377 378 379 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 375 def password(password) @builder.append " -p#{@builder.format password}" yield @builder if block_given? self end |
#read_data_from_stdin(file_name = nil) {|@builder| ... } ⇒ Object
392 393 394 395 396 397 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 392 def read_data_from_stdin(file_name=nil) @builder.append ' -si' @builder.append "#{@builder.format file_name}" unless file_name.nil? yield @builder if block_given? self end |
#recursive(modifier = nil) {|@builder| ... } ⇒ Object
380 381 382 383 384 385 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 380 def recursive(modifier=nil) @builder.append ' -r' @builder.append "#{@builder.format modifier}" unless modifier.nil? yield @builder if block_given? self end |
#set_compression_method(method_parameters) {|@builder| ... } ⇒ Object
370 371 372 373 374 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 370 def set_compression_method(method_parameters) @builder.append " -m#{@builder.format method_parameters}" yield @builder if block_given? self end |
#type(archive_type) {|@builder| ... } ⇒ Object
408 409 410 411 412 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 408 def type(archive_type) @builder.append " -t#{@builder.format archive_type}" yield @builder if block_given? self end |
#update_options(args) {|@builder| ... } ⇒ Object
413 414 415 416 417 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 413 def (args) @builder.append " -u#{@builder.format args}" yield @builder if block_given? self end |
#working_dir(dir_path = nil) {|@builder| ... } ⇒ Object
418 419 420 421 422 423 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 418 def working_dir(dir_path=nil) @builder.append ' -w' @builder.append "#{@builder.format dir_path}" unless dir_path.nil? yield @builder if block_given? self end |
#write_data_to_stdout {|@builder| ... } ⇒ Object
398 399 400 401 402 |
# File 'lib/fluent_command_builder/command_builders/sevenzip_92.rb', line 398 def write_data_to_stdout @builder.append ' -so' yield @builder if block_given? self end |