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