Class: FluentCommandBuilder::Tf::TEE2010::Changeset

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_tee_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.



303
304
305
306
307
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 303

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)


323
324
325
326
327
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 323

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)


308
309
310
311
312
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 308

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

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

Yields:

  • (@builder)


328
329
330
331
332
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 328

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

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

Yields:

  • (@builder)


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

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)


318
319
320
321
322
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 318

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

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

Yields:

  • (@builder)


313
314
315
316
317
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 313

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