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.
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
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
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
|
964
965
966
967
968
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 964
def ()
@b.append " /comment:#{@b.format comment}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
979
980
981
982
983
984
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 979
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
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
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
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
|