Class: FluentCommandBuilder::Tf::TEE2010::Checkin

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

Returns a new instance of Checkin.



341
342
343
344
345
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 341

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

Instance Method Details

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


386
387
388
389
390
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 386

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

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

Yields:

  • (@builder)


351
352
353
354
355
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 351

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

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

Yields:

  • (@builder)


397
398
399
400
401
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 397

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

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

Yields:

  • (@builder)


391
392
393
394
395
396
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 391

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)


356
357
358
359
360
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 356

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

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

Yields:

  • (@builder)


361
362
363
364
365
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 361

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

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

Yields:

  • (@builder)


366
367
368
369
370
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 366

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

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

Yields:

  • (@builder)


371
372
373
374
375
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 371

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

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

Yields:

  • (@builder)


376
377
378
379
380
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 376

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

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

Yields:

  • (@builder)


381
382
383
384
385
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 381

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