Class: FluentCommandBuilder::Tf::V2010::Undo

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

Returns a new instance of Undo.



1705
1706
1707
1708
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1705

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)


1731
1732
1733
1734
1735
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1731

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)


1725
1726
1727
1728
1729
1730
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1725

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)


1720
1721
1722
1723
1724
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1720

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

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

Yields:

  • (@builder)


1715
1716
1717
1718
1719
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1715

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

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

Yields:

  • (@builder)


1709
1710
1711
1712
1713
1714
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1709

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