Class: FluentCommandBuilder::SevenZip::V920::Extract
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V920::Extract
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) ⇒ Extract
Returns a new instance of Extract.
201
202
203
204
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 201
def initialize(underlying_builder, archive, files)
super underlying_builder
@b.append " e #{@b.format archive} #{@b.format files}"
end
|
Instance Method Details
#ai {|@b| ... } ⇒ Object
205
206
207
208
209
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 205
def ai
@b.append ' -ai'
yield @b if block_given?
self
end
|
#an {|@b| ... } ⇒ Object
210
211
212
213
214
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 210
def an
@b.append ' -an'
yield @b if block_given?
self
end
|
#ao {|@b| ... } ⇒ Object
215
216
217
218
219
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 215
def ao
@b.append ' -ao'
yield @b if block_given?
self
end
|
#ax {|@b| ... } ⇒ Object
220
221
222
223
224
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 220
def ax
@b.append ' -ax'
yield @b if block_given?
self
end
|
#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object
258
259
260
261
262
263
264
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 258
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
225
226
227
228
229
230
231
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 225
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
232
233
234
235
236
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 232
def output(dir_path)
@b.append " -o#{@b.format dir_path}"
yield @b if block_given?
self
end
|
#password(password) {|@b| ... } ⇒ Object
237
238
239
240
241
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 237
def password(password)
@b.append " -p#{@b.format_password password}"
yield @b if block_given?
self
end
|
#recursive(modifier = nil) {|@b| ... } ⇒ Object
242
243
244
245
246
247
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 242
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
253
254
255
256
257
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 253
def type(archive_type)
@b.append " -t#{@b.format archive_type}"
yield @b if block_given?
self
end
|
#write_data_to_stdout {|@b| ... } ⇒ Object
248
249
250
251
252
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 248
def write_data_to_stdout
@b.append ' -so'
yield @b if block_given?
self
end
|
#y {|@b| ... } ⇒ Object
265
266
267
268
269
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 265
def y
@b.append ' -y'
yield @b if block_given?
self
end
|