Class: FluentCommandBuilder::Tf::TEE2010::Add
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Add
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
-
#initialize(builder, item_spec) ⇒ Add
constructor
A new instance of Add.
- #lock(lock_type) {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #type(file_type) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Add
197 198 199 200 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 197 def initialize(builder, item_spec) super builder @builder.append " add #{@builder.format item_spec}" end |
Instance Method Details
#lock(lock_type) {|@builder| ... } ⇒ Object
201 202 203 204 205 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 201 def lock(lock_type) @builder.append " -lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
221 222 223 224 225 226 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 221 def login(username, password=nil) @builder.append " -login:#{@builder.format username}" @builder.append ",#{@builder.format password}" unless password.nil? yield @builder if block_given? self end |
#no_prompt {|@builder| ... } ⇒ Object
211 212 213 214 215 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 211 def no_prompt @builder.append ' -noPrompt' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
216 217 218 219 220 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 216 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |
#type(file_type) {|@builder| ... } ⇒ Object
206 207 208 209 210 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 206 def type(file_type) @builder.append " -type:#{@builder.format file_type}" yield @builder if block_given? self end |