Class: FluentCommandBuilder::Tf::V2010::Destroy
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Destroy
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Destroy
constructor
A new instance of Destroy.
- #keep_history {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #preview {|@builder| ... } ⇒ Object
- #silent {|@builder| ... } ⇒ Object
- #start_cleanup {|@builder| ... } ⇒ Object
- #stop_at(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Destroy
Returns a new instance of Destroy.
522 523 524 525 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 522 def initialize(builder, item_spec) super builder @builder.append " destroy #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
562 563 564 565 566 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 562 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#keep_history {|@builder| ... } ⇒ Object
526 527 528 529 530 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 526 def keep_history @builder.append ' /keepHistory' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
556 557 558 559 560 561 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 556 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
546 547 548 549 550 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 546 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#preview {|@builder| ... } ⇒ Object
536 537 538 539 540 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 536 def preview @builder.append ' /preview' yield @builder if block_given? self end |
#silent {|@builder| ... } ⇒ Object
551 552 553 554 555 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 551 def silent @builder.append ' /silent' yield @builder if block_given? self end |
#start_cleanup {|@builder| ... } ⇒ Object
541 542 543 544 545 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 541 def start_cleanup @builder.append ' /startCleanup' yield @builder if block_given? self end |
#stop_at(version_spec) {|@builder| ... } ⇒ Object
531 532 533 534 535 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 531 def stop_at(version_spec) @builder.append " /stopAt:#{@builder.format version_spec}" yield @builder if block_given? self end |