Class: FluentCommandBuilder::TeamFoundationTEE::V100::Rename
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V100::Rename
show all
- Defined in:
- lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder, old_item, new_item) ⇒ Rename
Returns a new instance of Rename.
1241
1242
1243
1244
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1241
def initialize(underlying_builder, old_item, new_item)
super underlying_builder
@b.append " rename #{@b.format old_item} #{@b.format new_item}"
end
|
Instance Method Details
#lock(lock_type) {|@b| ... } ⇒ Object
1245
1246
1247
1248
1249
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1245
def lock(lock_type)
@b.append " -lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1250
1251
1252
1253
1254
1255
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1250
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
|