Class: FluentCommandBuilder::Tf::TEE2010::ProductKey

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

Returns a new instance of ProductKey.



1136
1137
1138
1139
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1136

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

Instance Method Details

#set(my_product_key) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1140
1141
1142
1143
1144
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1140

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

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

Yields:

  • (@builder)


1145
1146
1147
1148
1149
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1145

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