Class: FluentCommandBuilder::Tf::V2010::Checkin

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

Returns a new instance of Checkin.



353
354
355
356
357
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 353

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)


358
359
360
361
362
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 358

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


363
364
365
366
367
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 363

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

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

Yields:

  • (@builder)


409
410
411
412
413
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 409

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

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

Yields:

  • (@builder)


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

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)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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