Class: FluentCommandBuilder::TeamFoundation::V100::DecloakFolder

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, server_folder) ⇒ DecloakFolder

Returns a new instance of DecloakFolder.



1974
1975
1976
1977
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1974

def initialize(underlying_builder, server_folder)
  super underlying_builder
  @b.append " workfold /decloak #{@b.format server_folder}"
end

Instance Method Details

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

Yields:

  • (@b)


1990
1991
1992
1993
1994
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1990

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

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

Yields:

  • (@b)


1978
1979
1980
1981
1982
1983
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1978

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

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

Yields:

  • (@b)


1984
1985
1986
1987
1988
1989
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1984

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