Class: FluentCommandBuilder::TeamFoundationTEE::V101::Label

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, item_spec, scope = nil) ⇒ Label

Returns a new instance of Label.



921
922
923
924
925
926
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 921

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

Instance Method Details

#child(lock_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


942
943
944
945
946
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 942

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

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

Yields:

  • (@b)


958
959
960
961
962
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 958

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

#comment(comment) {|@b| ... } ⇒ Object

Yields:

  • (@b)


937
938
939
940
941
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 937

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

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

Yields:

  • (@b)


952
953
954
955
956
957
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 952

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)


927
928
929
930
931
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 927

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

#recursive {|@b| ... } ⇒ Object

Yields:

  • (@b)


947
948
949
950
951
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 947

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

#version(version_spec) {|@b| ... } ⇒ Object

Yields:

  • (@b)


932
933
934
935
936
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 932

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