Class: FluentCommandBuilder::TeamFoundation::V100::CreateWorkspace

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_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.



1998
1999
2000
2001
2002
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1998

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)


2024
2025
2026
2027
2028
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2024

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)


2019
2020
2021
2022
2023
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2019

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

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

Yields:

  • (@b)


2014
2015
2016
2017
2018
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2014

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)


2034
2035
2036
2037
2038
2039
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2034

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)


2003
2004
2005
2006
2007
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2003

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

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

Yields:

  • (@b)


2029
2030
2031
2032
2033
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2029

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)


2008
2009
2010
2011
2012
2013
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2008

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