Class: FluentCommandBuilder::SevenZip::V920::Add
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::SevenZip::V920::Add
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, file_ref) ⇒ Add
Returns a new instance of Add.
54
55
56
57
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 54
def initialize(underlying_builder, archive, file_ref)
super underlying_builder
@b.append " a #{@b.format archive} #{@b.format file_ref}"
end
|
Instance Method Details
#compress_files_open_for_writing {|@b| ... } ⇒ Object
98
99
100
101
102
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 98
def compress_files_open_for_writing
@b.append ' -ssw'
yield @b if block_given?
self
end
|
#create_sfx_archive(sfx_module = nil) {|@b| ... } ⇒ Object
81
82
83
84
85
86
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 81
def create_sfx_archive(sfx_module=nil)
@b.append ' -sfx'
@b.append "#{@b.format sfx_module}" unless sfx_module.nil?
yield @b if block_given?
self
end
|
#create_volumes(size, unit_of_measure = nil) {|@b| ... } ⇒ Object
113
114
115
116
117
118
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 113
def create_volumes(size, unit_of_measure=nil)
@b.append " -v#{@b.format size}"
@b.append "#{@b.format unit_of_measure}" unless unit_of_measure.nil?
yield @b if block_given?
self
end
|
#exclude(file_ref, recurse_type = nil) {|@b| ... } ⇒ Object
125
126
127
128
129
130
131
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 125
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
58
59
60
61
62
63
64
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 58
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
70
71
72
73
74
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 70
def password(password)
@b.append " -p#{@b.format_password password}"
yield @b if block_given?
self
end
|
#read_data_from_stdin(file_name = nil) {|@b| ... } ⇒ Object
87
88
89
90
91
92
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 87
def read_data_from_stdin(file_name=nil)
@b.append ' -si'
@b.append "#{@b.format file_name}" unless file_name.nil?
yield @b if block_given?
self
end
|
#recursive(modifier = nil) {|@b| ... } ⇒ Object
75
76
77
78
79
80
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 75
def recursive(modifier=nil)
@b.append ' -r'
@b.append "#{@b.format modifier}" unless modifier.nil?
yield @b if block_given?
self
end
|
#set_compression_method(method_parameters) {|@b| ... } ⇒ Object
65
66
67
68
69
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 65
def set_compression_method(method_parameters)
@b.append " -m#{@b.format method_parameters}"
yield @b if block_given?
self
end
|
#type(archive_type) {|@b| ... } ⇒ Object
103
104
105
106
107
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 103
def type(archive_type)
@b.append " -t#{@b.format archive_type}"
yield @b if block_given?
self
end
|
#update_options(args) {|@b| ... } ⇒ Object
108
109
110
111
112
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 108
def update_options(args)
@b.append " -u#{@b.format args}"
yield @b if block_given?
self
end
|
#working_dir(dir_path = nil) {|@b| ... } ⇒ Object
119
120
121
122
123
124
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 119
def working_dir(dir_path=nil)
@b.append ' -w'
@b.append "#{@b.format dir_path}" unless dir_path.nil?
yield @b if block_given?
self
end
|
#write_data_to_stdout {|@b| ... } ⇒ Object
93
94
95
96
97
|
# File 'lib/fluent_command_builder/command_builders/sevenzip_920.rb', line 93
def write_data_to_stdout
@b.append ' -so'
yield @b if block_given?
self
end
|