Class: FluentCommandBuilder::TeamFoundation::V100::Label
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::Label
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.
947
948
949
950
951
952
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 947
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
968
969
970
971
972
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 968
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
984
985
986
987
988
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 984
def collection(team_project_collection_url)
@b.append " /collection:#{@b.format team_project_collection_url}"
yield @b if block_given?
self
end
|
963
964
965
966
967
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 963
def ()
@b.append " /comment:#{@b.format }"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
978
979
980
981
982
983
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 978
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
953
954
955
956
957
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 953
def owner(owner_name)
@b.append " /owner:#{@b.format owner_name}"
yield @b if block_given?
self
end
|
#recursive {|@b| ... } ⇒ Object
973
974
975
976
977
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 973
def recursive
@b.append ' /recursive'
yield @b if block_given?
self
end
|
#version(version_spec) {|@b| ... } ⇒ Object
958
959
960
961
962
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 958
def version(version_spec)
@b.append " /version:#{@b.format version_spec}"
yield @b if block_given?
self
end
|