Class: FluentCommandBuilder::TeamFoundation::V100::ModifyWorkspace

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

Returns a new instance of ModifyWorkspace.



2060
2061
2062
2063
2064
2065
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2060

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)


2076
2077
2078
2079
2080
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2076

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)


2071
2072
2073
2074
2075
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2071

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

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

Yields:

  • (@b)


2066
2067
2068
2069
2070
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2066

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)


2086
2087
2088
2089
2090
2091
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2086

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)


2092
2093
2094
2095
2096
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2092

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)


2097
2098
2099
2100
2101
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2097

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)


2081
2082
2083
2084
2085
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2081

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