Class: FluentCommandBuilder::TeamFoundation::V100::DeleteLabel

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

Returns a new instance of DeleteLabel.



991
992
993
994
995
996
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 991

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)


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

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)


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

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