Class: FluentCommandBuilder::TeamFoundation::V100::Rename

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, old_item, new_item) ⇒ Rename

Returns a new instance of Rename.



1392
1393
1394
1395
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1392

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

Yields:

  • (@b)


1396
1397
1398
1399
1400
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1396

def lock(lock_type)
  @b.append " /lock:#{@b.format lock_type}"
  yield @b if block_given?
  self
end

#login(username, password = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1401
1402
1403
1404
1405
1406
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1401

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