Class: FluentCommandBuilder::Tf::TEE2010::Undelete
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Undelete
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
-
#initialize(builder, item_spec, deletion_id = nil) ⇒ Undelete
constructor
A new instance of Undelete.
- #lock(lock_type) {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_get {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec, deletion_id = nil) ⇒ Undelete
Returns a new instance of Undelete.
1548 1549 1550 1551 1552 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1548 def initialize(builder, item_spec, deletion_id=nil) super builder @builder.append " undelete #{@builder.format item_spec}" @builder.append ";#{@builder.format deletion_id}" unless deletion_id.nil? end |
Instance Method Details
#lock(lock_type) {|@builder| ... } ⇒ Object
1558 1559 1560 1561 1562 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1558 def lock(lock_type) @builder.append " -lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1568 1569 1570 1571 1572 1573 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1568 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_get {|@builder| ... } ⇒ Object
1553 1554 1555 1556 1557 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1553 def no_get @builder.append ' -noGet' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1563 1564 1565 1566 1567 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1563 def recursive @builder.append ' -recursive' yield @builder if block_given? self end |