Class: FluentCommandBuilder::TeamFoundation::V100::Label

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_100.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.



948
949
950
951
952
953
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 948

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)


969
970
971
972
973
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 969

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)


985
986
987
988
989
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 985

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)


964
965
966
967
968
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 964

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

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

Yields:

  • (@b)


979
980
981
982
983
984
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 979

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)


954
955
956
957
958
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 954

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

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

Yields:

  • (@b)


974
975
976
977
978
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 974

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

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

Yields:

  • (@b)


959
960
961
962
963
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 959

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