Class: FluentCommandBuilder::SevenZip::V920::List
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V920::List
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) ⇒ List
Returns a new instance of List.
273
274
275
276
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 273
def initialize(underlying_builder, archive)
super underlying_builder
@b.append " l #{@b.format archive}"
end
|
Instance Method Details
#ai {|@b| ... } ⇒ Object
277
278
279
280
281
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 277
def ai
@b.append ' -ai'
yield @b if block_given?
self
end
|
#an {|@b| ... } ⇒ Object
282
283
284
285
286
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 282
def an
@b.append ' -an'
yield @b if block_given?
self
end
|
#ax {|@b| ... } ⇒ Object
287
288
289
290
291
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 287
def ax
@b.append ' -ax'
yield @b if block_given?
self
end
|
#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object
320
321
322
323
324
325
326
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 320
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
292
293
294
295
296
297
298
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 292
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
304
305
306
307
308
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 304
def password(password)
@b.append " -p#{@b.format_password password}"
yield @b if block_given?
self
end
|
#recursive(modifier = nil) {|@b| ... } ⇒ Object
309
310
311
312
313
314
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 309
def recursive(modifier=nil)
@b.append ' -r'
@b.append "#{@b.format modifier}" unless modifier.nil?
yield @b if block_given?
self
end
|
#slt {|@b| ... } ⇒ Object
299
300
301
302
303
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 299
def slt
@b.append ' -slt'
yield @b if block_given?
self
end
|
#type(archive_type) {|@b| ... } ⇒ Object
315
316
317
318
319
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 315
def type(archive_type)
@b.append " -t#{@b.format archive_type}"
yield @b if block_given?
self
end
|