Class: FluentCommandBuilder::TeamFoundationTEE::V101::Checkout
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V101::Checkout
show all
- Defined in:
- lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder, item_spec = nil) ⇒ Checkout
461
462
463
464
465
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 461
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
466
467
468
469
470
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 466
def lock(lock_type)
@b.append " -lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
481
482
483
484
485
486
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 481
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
471
472
473
474
475
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 471
def recursive
@b.append ' -recursive'
yield @b if block_given?
self
end
|
#type(encoding) {|@b| ... } ⇒ Object
476
477
478
479
480
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 476
def type(encoding)
@b.append " -type:#{@b.format encoding}"
yield @b if block_given?
self
end
|