Class: FluentCommandBuilder::TeamFoundationTEE::V100::CreateWorkspace

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, workspace_owner = nil) ⇒ CreateWorkspace

Returns a new instance of CreateWorkspace.



1723
1724
1725
1726
1727
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1723

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

Instance Method Details

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

Yields:

  • (@b)


1749
1750
1751
1752
1753
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1749

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)


1744
1745
1746
1747
1748
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1744

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

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

Yields:

  • (@b)


1739
1740
1741
1742
1743
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1739

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)


1759
1760
1761
1762
1763
1764
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1759

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

#no_prompt {|@b| ... } ⇒ Object

Yields:

  • (@b)


1728
1729
1730
1731
1732
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1728

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

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

Yields:

  • (@b)


1754
1755
1756
1757
1758
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1754

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

#template(workspace_name, workspace_owner = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1733
1734
1735
1736
1737
1738
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1733

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