Class: FluentCommandBuilder::TeamFoundation::V100::Labels
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::Labels
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 = nil) ⇒ Labels
Returns a new instance of Labels.
1010
1011
1012
1013
1014
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1010
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
1025
1026
1027
1028
1029
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1025
def collection(team_project_collection_url)
@b.append " /collection:#{@b.format team_project_collection_url}"
yield @b if block_given?
self
end
|
1020
1021
1022
1023
1024
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1020
def format(format)
@b.append " /format:#{@b.format format}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1030
1031
1032
1033
1034
1035
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1030
def login(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
1015
1016
1017
1018
1019
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1015
def owner(owner_name)
@b.append " /owner:#{@b.format owner_name}"
yield @b if block_given?
self
end
|