Class: FluentCommandBuilder::Tf::V2010::RollbackToVersion
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::RollbackToVersion
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
-
#initialize(builder, version_spec, item_spec) ⇒ RollbackToVersion
constructor
A new instance of RollbackToVersion.
- #keep_merge_history {|@builder| ... } ⇒ Object
- #lock(lock_type) {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, version_spec, item_spec) ⇒ RollbackToVersion
1442 1443 1444 1445 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1442 def initialize(builder, version_spec, item_spec) super builder @builder.append " rollback /toVersion:#{@builder.format version_spec} #{@builder.format item_spec}" end |
Instance Method Details
#keep_merge_history {|@builder| ... } ⇒ Object
1461 1462 1463 1464 1465 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1461 def keep_merge_history @builder.append ' /keepMergeHistory' yield @builder if block_given? self end |
#lock(lock_type) {|@builder| ... } ⇒ Object
1451 1452 1453 1454 1455 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1451 def lock(lock_type) @builder.append " /lock:#{@builder.format lock_type}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1466 1467 1468 1469 1470 1471 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1466 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
1472 1473 1474 1475 1476 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1472 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
1446 1447 1448 1449 1450 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1446 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
1456 1457 1458 1459 1460 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1456 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |