Class: FluentCommandBuilder::TeamFoundation::V100::Checkout
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::Checkout
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, item_spec = nil) ⇒ Checkout
Returns a new instance of Checkout.
469
470
471
472
473
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 469
def initialize(underlying_builder, item_spec=nil)
super underlying_builder
@b.append ' checkout'
@b.append " #{@b.format item_spec}" unless item_spec.nil?
end
|
Instance Method Details
#lock(lock_type) {|@b| ... } ⇒ Object
474
475
476
477
478
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 474
def lock(lock_type)
@b.append " /lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
489
490
491
492
493
494
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 489
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
|
#recursive {|@b| ... } ⇒ Object
479
480
481
482
483
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 479
def recursive
@b.append ' /recursive'
yield @b if block_given?
self
end
|
#type(encoding) {|@b| ... } ⇒ Object
484
485
486
487
488
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 484
def type(encoding)
@b.append " /type:#{@b.format encoding}"
yield @b if block_given?
self
end
|