Class: FluentCommandBuilder::Tf::V2010::Undelete
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Undelete
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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.
1677 1678 1679 1680 1681 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1677 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
1687 1688 1689 1690 1691 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1687 def lock(lock_type) @builder.append " /lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1697 1698 1699 1700 1701 1702 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1697 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
1682 1683 1684 1685 1686 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1682 def no_get @builder.append ' /noGet' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1692 1693 1694 1695 1696 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1692 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |