Class: FluentCommandBuilder::Tf::V2010::Destroy

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_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.



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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


556
557
558
559
560
561
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 556

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)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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