Class: FluentCommandBuilder::TeamFoundationTEE::V101::Labels

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, label_name = nil) ⇒ Labels

Returns a new instance of Labels.



983
984
985
986
987
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 983

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

Instance Method Details

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

Yields:

  • (@b)


998
999
1000
1001
1002
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 998

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)


993
994
995
996
997
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 993

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

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

Yields:

  • (@b)


1003
1004
1005
1006
1007
1008
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1003

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)


988
989
990
991
992
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 988

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