Class: FluentCommandBuilder::TeamFoundationTEE::V101::DeleteShelveset

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, shelveset_name, shelveset_owner = nil) ⇒ DeleteShelveset

Returns a new instance of DeleteShelveset.



1493
1494
1495
1496
1497
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1493

def initialize(underlying_builder, shelveset_name, shelveset_owner=nil)
  super underlying_builder
  @b.append " shelve -delete #{@b.format shelveset_name}"
  @b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
end

Instance Method Details

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

Yields:

  • (@b)


1504
1505
1506
1507
1508
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1504

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)


1498
1499
1500
1501
1502
1503
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1498

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