Class: FluentCommandBuilder::Tf::TEE2010::EditProfile
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::EditProfile
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #boolean(property_name, value) {|@builder| ... } ⇒ Object
-
#initialize(builder, existing_profile_name) ⇒ EditProfile
constructor
A new instance of EditProfile.
- #number(property_name, value) {|@builder| ... } ⇒ Object
- #string(property_name, value) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, existing_profile_name) ⇒ EditProfile
Returns a new instance of EditProfile.
1152 1153 1154 1155 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1152 def initialize(builder, existing_profile_name) super builder @builder.append " profile -edit #{@builder.format existing_profile_name}" end |
Instance Method Details
#boolean(property_name, value) {|@builder| ... } ⇒ Object
1161 1162 1163 1164 1165 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1161 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
1166 1167 1168 1169 1170 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1166 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
1156 1157 1158 1159 1160 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1156 def string(property_name, value) @builder.append " -string:#{@builder.format property_name}=#{@builder.format value}" yield @builder if block_given? self end |