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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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)


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

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