Class: FluentCommandBuilder::Tf::V2010::Changeset

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, changeset_number = nil) ⇒ Changeset

Returns a new instance of Changeset.



315
316
317
318
319
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 315

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

Instance Method Details

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

Yields:

  • (@builder)


335
336
337
338
339
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 335

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

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

Yields:

  • (@builder)


320
321
322
323
324
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 320

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

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

Yields:

  • (@builder)


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

def latest
  @builder.append ' /latest'
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


345
346
347
348
349
350
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 345

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


330
331
332
333
334
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 330

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

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

Yields:

  • (@builder)


325
326
327
328
329
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 325

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