Class: FluentCommandBuilder::Tf::TEE2010::Getcs

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) ⇒ Getcs

Returns a new instance of Getcs.



807
808
809
810
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 807

def initialize(builder)
  super builder
  @builder.append ' getcs'
end

Instance Method Details

#changeset(changeset_number) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


811
812
813
814
815
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 811

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

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

Yields:

  • (@builder)


816
817
818
819
820
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 816

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