Class: FluentCommandBuilder::TeamFoundationTEE::V101::DeleteLabel

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) ⇒ DeleteLabel

Returns a new instance of DeleteLabel.



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

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

Instance Method Details

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

Yields:

  • (@b)


976
977
978
979
980
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 976

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

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

Yields:

  • (@b)


970
971
972
973
974
975
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 970

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