Class: FluentCommandBuilder::TeamFoundationTEE::V101::Status

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



1540
1541
1542
1543
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1540

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)


1544
1545
1546
1547
1548
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1544

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)


1567
1568
1569
1570
1571
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1567

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

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

Yields:

  • (@b)


1549
1550
1551
1552
1553
1554
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1549

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)


1572
1573
1574
1575
1576
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1572

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

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

Yields:

  • (@b)


1561
1562
1563
1564
1565
1566
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1561

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)


1577
1578
1579
1580
1581
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1577

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)


1555
1556
1557
1558
1559
1560
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1555

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