Class: FluentCommandBuilder::TeamFoundation::V100::Checkin

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, item_spec = nil) ⇒ Checkin

Returns a new instance of Checkin.



368
369
370
371
372
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 368

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)


373
374
375
376
377
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 373

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

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

Yields:

  • (@b)


413
414
415
416
417
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 413

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

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

Yields:

  • (@b)


378
379
380
381
382
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 378

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

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

Yields:

  • (@b)


424
425
426
427
428
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 424

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

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

Yields:

  • (@b)


418
419
420
421
422
423
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 418

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)


383
384
385
386
387
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 383

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

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

Yields:

  • (@b)


388
389
390
391
392
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 388

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

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

Yields:

  • (@b)


393
394
395
396
397
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 393

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

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

Yields:

  • (@b)


398
399
400
401
402
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 398

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

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

Yields:

  • (@b)


403
404
405
406
407
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 403

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

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

Yields:

  • (@b)


408
409
410
411
412
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 408

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