Class: FluentCommandBuilder::TeamFoundation::V100::Shelvesets

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 = nil) ⇒ Shelvesets

Returns a new instance of Shelvesets.



1620
1621
1622
1623
1624
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1620

def initialize(underlying_builder, shelveset_name=nil)
  super underlying_builder
  @b.append ' shelvesets'
  @b.append " #{@b.format shelveset_name}" unless shelveset_name.nil?
end

Instance Method Details

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

Yields:

  • (@b)


1635
1636
1637
1638
1639
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1635

def collection(team_project_collection_url)
  @b.append " /collection:#{@b.format team_project_collection_url}"
  yield @b if block_given?
  self
end

#format(format) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1630
1631
1632
1633
1634
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1630

def format(format)
  @b.append " /format:#{@b.format format}"
  yield @b if block_given?
  self
end

#login(username, password = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1640
1641
1642
1643
1644
1645
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1640

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

#owner(owner_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1625
1626
1627
1628
1629
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1625

def owner(owner_name)
  @b.append " /owner:#{@b.format owner_name}"
  yield @b if block_given?
  self
end