Class: FluentCommandBuilder::TeamFoundationTEE::V101::Checkin

Inherits:
CommandBase
  • Object
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) ⇒ Checkin

Returns a new instance of Checkin.



359
360
361
362
363
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 359

def initialize(underlying_builder, item_spec=nil)
  super underlying_builder
  @b.append ' checkin'
  @b.append " #{@b.format item_spec}" unless item_spec.nil?
end

Instance Method Details

#author(author_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


364
365
366
367
368
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 364

def author(author_name)
  @b.append " -author:#{@b.format author_name}"
  yield @b if block_given?
  self
end

#bypass {|@b| ... } ⇒ Object

Yields:

  • (@b)


404
405
406
407
408
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 404

def bypass
  @b.append ' -bypass'
  yield @b if block_given?
  self
end

#comment(comment) {|@b| ... } ⇒ Object

Yields:

  • (@b)


369
370
371
372
373
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 369

def comment(comment)
  @b.append " -comment:#{@b.format comment}"
  yield @b if block_given?
  self
end

#force {|@b| ... } ⇒ Object

Yields:

  • (@b)


415
416
417
418
419
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 415

def force
  @b.append ' -force'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


409
410
411
412
413
414
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 409

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

#no_prompt {|@b| ... } ⇒ Object

Yields:

  • (@b)


374
375
376
377
378
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 374

def no_prompt
  @b.append ' -noPrompt'
  yield @b if block_given?
  self
end

#notes(notes) {|@b| ... } ⇒ Object

Yields:

  • (@b)


379
380
381
382
383
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 379

def notes(notes)
  @b.append " -notes:#{@b.format notes, ';', '='}"
  yield @b if block_given?
  self
end

#override(reason) {|@b| ... } ⇒ Object

Yields:

  • (@b)


384
385
386
387
388
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 384

def override(reason)
  @b.append " -override:#{@b.format reason}"
  yield @b if block_given?
  self
end

#recursive {|@b| ... } ⇒ Object

Yields:

  • (@b)


389
390
391
392
393
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 389

def recursive
  @b.append ' -recursive'
  yield @b if block_given?
  self
end

#saved {|@b| ... } ⇒ Object

Yields:

  • (@b)


394
395
396
397
398
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 394

def saved
  @b.append ' -saved'
  yield @b if block_given?
  self
end

#validate {|@b| ... } ⇒ Object

Yields:

  • (@b)


399
400
401
402
403
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 399

def validate
  @b.append ' -validate'
  yield @b if block_given?
  self
end