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.



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

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)


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

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)


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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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