Class: FluentCommandBuilder::TeamFoundationTEE::V100::Lock

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



980
981
982
983
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 980

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)


1006
1007
1008
1009
1010
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1006

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)


984
985
986
987
988
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 984

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)


1000
1001
1002
1003
1004
1005
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1000

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)


995
996
997
998
999
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 995

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

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

Yields:

  • (@b)


989
990
991
992
993
994
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 989

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