Class: FluentCommandBuilder::Tf::TEE2010::Print

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

Returns a new instance of Print.



1125
1126
1127
1128
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1125

def initialize(builder, item_spec)
  super builder
  @builder.append " print #{@builder.format item_spec}"
end

Instance Method Details

#version(version_spec) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1129
1130
1131
1132
1133
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1129

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