Class: FluentCommandBuilder::TeamFoundation::V100::Status

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, item_spec) ⇒ Status

Returns a new instance of Status.



1648
1649
1650
1651
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1648

def initialize(underlying_builder, item_spec)
  super underlying_builder
  @b.append " status #{@b.format item_spec}"
end

Instance Method Details

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

Yields:

  • (@b)


1652
1653
1654
1655
1656
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1652

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)


1675
1676
1677
1678
1679
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1675

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

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

Yields:

  • (@b)


1657
1658
1659
1660
1661
1662
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1657

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)


1680
1681
1682
1683
1684
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1680

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

#shelveset(shelveset_name, shelveset_owner = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1669
1670
1671
1672
1673
1674
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1669

def shelveset(shelveset_name, shelveset_owner=nil)
  @b.append " /shelveset:#{@b.format shelveset_name}"
  @b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
  yield @b if block_given?
  self
end

#user(user_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1685
1686
1687
1688
1689
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1685

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

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

Yields:

  • (@b)


1663
1664
1665
1666
1667
1668
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1663

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