Class: FluentCommandBuilder::TeamFoundationTEE::V101::Lock

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Lock

Returns a new instance of Lock.



1012
1013
1014
1015
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1012

def initialize(underlying_builder, item_spec)
  super underlying_builder
  @b.append " lock #{@b.format item_spec}"
end

Instance Method Details

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

Yields:

  • (@b)


1038
1039
1040
1041
1042
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1038

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

#lock(lock_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1016
1017
1018
1019
1020
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1016

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

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

Yields:

  • (@b)


1032
1033
1034
1035
1036
1037
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1032

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

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

Yields:

  • (@b)


1027
1028
1029
1030
1031
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1027

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

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

Yields:

  • (@b)


1021
1022
1023
1024
1025
1026
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1021

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