Class: FluentCommandBuilder::Tf::TEE2010::Delete
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Delete
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
-
#initialize(builder, item_spec) ⇒ Delete
constructor
A new instance of Delete.
- #lock(lock_type) {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Delete
Returns a new instance of Delete.
470 471 472 473 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 470 def initialize(builder, item_spec) super builder @builder.append " delete #{@builder.format item_spec}" end |
Instance Method Details
#lock(lock_type) {|@builder| ... } ⇒ Object
474 475 476 477 478 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 474 def lock(lock_type) @builder.append " -lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
484 485 486 487 488 489 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 484 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 |
#recursive {|@builder| ... } ⇒ Object
479 480 481 482 483 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 479 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |