Class: FluentCommandBuilder::Tf::V2010::Shelve
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Shelve
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #comment(comment) {|@builder| ... } ⇒ Object
-
#initialize(builder, shelveset_name, item_spec) ⇒ Shelve
constructor
A new instance of Shelve.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #move {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #replace {|@builder| ... } ⇒ Object
- #validate {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, shelveset_name, item_spec) ⇒ Shelve
Returns a new instance of Shelve.
1545 1546 1547 1548 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1545 def initialize(builder, shelveset_name, item_spec) super builder @builder.append " shelve #{@builder.format shelveset_name} #{@builder.format item_spec}" end |
Instance Method Details
#comment(comment) {|@builder| ... } ⇒ Object
1559 1560 1561 1562 1563 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1559 def comment(comment) @builder.append " /comment:#{@builder.format comment}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1579 1580 1581 1582 1583 1584 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1579 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 |
#move {|@builder| ... } ⇒ Object
1549 1550 1551 1552 1553 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1549 def move @builder.append ' /move' yield @builder if block_given? self end |
#no_prompt {|@builder| ... } ⇒ Object
1574 1575 1576 1577 1578 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1574 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1564 1565 1566 1567 1568 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1564 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#replace {|@builder| ... } ⇒ Object
1554 1555 1556 1557 1558 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1554 def replace @builder.append ' /replace' yield @builder if block_given? self end |
#validate {|@builder| ... } ⇒ Object
1569 1570 1571 1572 1573 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1569 def validate @builder.append ' /validate' yield @builder if block_given? self end |