Class: FluentCommandBuilder::SevenZip::V920::Test
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V920::Test
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.
328
329
330
331
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 328
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
332
333
334
335
336
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 332
def ai
@b.append ' -ai'
yield @b if block_given?
self
end
|
#an {|@b| ... } ⇒ Object
337
338
339
340
341
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 337
def an
@b.append ' -an'
yield @b if block_given?
self
end
|
#ax {|@b| ... } ⇒ Object
342
343
344
345
346
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 342
def ax
@b.append ' -ax'
yield @b if block_given?
self
end
|
#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object
365
366
367
368
369
370
371
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 365
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
347
348
349
350
351
352
353
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 347
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
354
355
356
357
358
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 354
def password(password)
@b.append " -p#{@b.format_password password}"
yield @b if block_given?
self
end
|
#recursive(modifier = nil) {|@b| ... } ⇒ Object
359
360
361
362
363
364
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 359
def recursive(modifier=nil)
@b.append ' -r'
@b.append "#{@b.format modifier}" unless modifier.nil?
yield @b if block_given?
self
end
|