Class: FluentCommandBuilder::Tf::TEE2010::Destroy
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Destroy
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_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.
492 493 494 495 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 492 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
532 533 534 535 536 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 532 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
496 497 498 499 500 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 496 def keep_history @builder.append ' -keepHistory' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
526 527 528 529 530 531 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 526 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
516 517 518 519 520 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 516 def no_prompt @builder.append ' -noPrompt' yield @builder if block_given? self end |
#preview {|@builder| ... } ⇒ Object
506 507 508 509 510 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 506 def preview @builder.append ' -preview' yield @builder if block_given? self end |
#silent {|@builder| ... } ⇒ Object
521 522 523 524 525 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 521 def silent @builder.append ' -silent' yield @builder if block_given? self end |
#start_cleanup {|@builder| ... } ⇒ Object
511 512 513 514 515 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 511 def start_cleanup @builder.append ' -startCleanup' yield @builder if block_given? self end |
#stop_at(version_spec) {|@builder| ... } ⇒ Object
501 502 503 504 505 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 501 def stop_at(version_spec) @builder.append " -stopAt:#{@builder.format version_spec}" yield @builder if block_given? self end |