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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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)


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

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