Class: FluentCommandBuilder::Tf::TEE2010::Destroy

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_tee_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


526
527
528
529
530
531
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 526

def (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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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