Class: FluentCommandBuilder::Tf::TEE2010::NewProfile
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::NewProfile
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #boolean(property_name, value) {|@builder| ... } ⇒ Object
-
#initialize(builder, new_profile_name) ⇒ NewProfile
constructor
A new instance of NewProfile.
- #number(property_name, value) {|@builder| ... } ⇒ Object
- #string(property_name, value) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, new_profile_name) ⇒ NewProfile
Returns a new instance of NewProfile.
1173 1174 1175 1176 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1173 def initialize(builder, new_profile_name) super builder @builder.append " profile -new #{@builder.format new_profile_name}" end |
Instance Method Details
#boolean(property_name, value) {|@builder| ... } ⇒ Object
1182 1183 1184 1185 1186 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1182 def boolean(property_name, value) @builder.append " -boolean:#{@builder.format property_name}=#{@builder.format value}" yield @builder if block_given? self end |
#number(property_name, value) {|@builder| ... } ⇒ Object
1187 1188 1189 1190 1191 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1187 def number(property_name, value) @builder.append " -number:#{@builder.format property_name}=#{@builder.format value}" yield @builder if block_given? self end |
#string(property_name, value) {|@builder| ... } ⇒ Object
1177 1178 1179 1180 1181 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1177 def string(property_name, value) @builder.append " -string:#{@builder.format property_name}=#{@builder.format value}" yield @builder if block_given? self end |