Class: FluentCommandBuilder::TeamFoundationTEE::V100::Changeset

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, changeset_number = nil) ⇒ Changeset

Returns a new instance of Changeset.



309
310
311
312
313
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 309

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

Instance Method Details

#collection(team_project_collection_url) {|@b| ... } ⇒ Object

Yields:

  • (@b)


329
330
331
332
333
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 329

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

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

Yields:

  • (@b)


314
315
316
317
318
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 314

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

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

Yields:

  • (@b)


334
335
336
337
338
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 334

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

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

Yields:

  • (@b)


339
340
341
342
343
344
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 339

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)


324
325
326
327
328
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 324

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

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

Yields:

  • (@b)


319
320
321
322
323
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 319

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