Class: FluentCommandBuilder::TeamFoundation::V100::DeleteShelveset

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

Returns a new instance of DeleteShelveset.



1602
1603
1604
1605
1606
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1602

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)


1613
1614
1615
1616
1617
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1613

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)


1607
1608
1609
1610
1611
1612
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1607

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