Class: FluentCommandBuilder::TeamFoundationTEE::V101::Shelvesets

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

Returns a new instance of Shelvesets.



1511
1512
1513
1514
1515
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1511

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)


1526
1527
1528
1529
1530
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1526

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)


1521
1522
1523
1524
1525
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1521

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

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

Yields:

  • (@b)


1531
1532
1533
1534
1535
1536
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1531

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)


1516
1517
1518
1519
1520
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1516

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