Class: FluentCommandBuilder::Tf::TEE2010::Undo

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) ⇒ Undo

Returns a new instance of Undo.



1576
1577
1578
1579
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1576

def initialize(builder, item_spec)
  super builder
  @builder.append " undo #{@builder.format item_spec}"
end

Instance Method Details

#collection(team_project_collection_url) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1602
1603
1604
1605
1606
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1602

def collection(team_project_collection_url)
  @builder.append " -collection:#{@builder.format team_project_collection_url}"
  yield @builder if block_given?
  self
end

#login(username, password = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1596
1597
1598
1599
1600
1601
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1596

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)


1591
1592
1593
1594
1595
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1591

def no_prompt
  @builder.append ' -noPrompt'
  yield @builder if block_given?
  self
end

#recursive {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1586
1587
1588
1589
1590
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1586

def recursive
  @builder.append ' -recursive'
  yield @builder if block_given?
  self
end

#workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1580
1581
1582
1583
1584
1585
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1580

def workspace(workspace_name, workspace_owner=nil)
  @builder.append " -workspace:#{@builder.format workspace_name}"
  @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
  yield @builder if block_given?
  self
end