Class: FluentCommandBuilder::TeamFoundationTEE::V100::ModifyWorkspace

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, workspace_name = nil, workspace_owner = nil) ⇒ ModifyWorkspace

Returns a new instance of ModifyWorkspace.



1785
1786
1787
1788
1789
1790
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1785

def initialize(underlying_builder, workspace_name=nil, workspace_owner=nil)
  super underlying_builder
  @b.append ' workspace '
  @b.append "#{@b.format workspace_name}" unless workspace_name.nil?
  @b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
end

Instance Method Details

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

Yields:

  • (@b)


1801
1802
1803
1804
1805
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1801

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

#comment(comment) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1796
1797
1798
1799
1800
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1796

def comment(comment)
  @b.append " -comment:#{@b.format comment}"
  yield @b if block_given?
  self
end

#computer(computer_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1791
1792
1793
1794
1795
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1791

def computer(computer_name)
  @b.append " -computer:#{@b.format computer_name}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


1811
1812
1813
1814
1815
1816
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1811

def (username, password=nil)
  @b.append " -login:#{@b.format username}"
  @b.append ",#{@b.format_password password}" unless password.nil?
  yield @b if block_given?
  self
end

#new_name(workspace_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1817
1818
1819
1820
1821
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1817

def new_name(workspace_name)
  @b.append " -newName:#{@b.format workspace_name}"
  yield @b if block_given?
  self
end

#new_owner(owner_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1822
1823
1824
1825
1826
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1822

def new_owner(owner_name)
  @b.append " -newOwner:#{@b.format owner_name}"
  yield @b if block_given?
  self
end

#permission(permission) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1806
1807
1808
1809
1810
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1806

def permission(permission)
  @b.append " -permission:#{@b.format permission}"
  yield @b if block_given?
  self
end