Class: FluentCommandBuilder::Tf::TEE2010::Profiles

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

Returns a new instance of Profiles.



1194
1195
1196
1197
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1194

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

Instance Method Details

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

Yields:

  • (@builder)


1198
1199
1200
1201
1202
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1198

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