Class: FluentCommandBuilder::TeamFoundation::V100::Lock

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, item_spec) ⇒ Lock

Returns a new instance of Lock.



1065
1066
1067
1068
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1065

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)


1091
1092
1093
1094
1095
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1091

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)


1069
1070
1071
1072
1073
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1069

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)


1085
1086
1087
1088
1089
1090
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1085

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)


1080
1081
1082
1083
1084
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1080

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

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

Yields:

  • (@b)


1074
1075
1076
1077
1078
1079
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1074

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