Class: FluentCommandBuilder::TeamFoundationTEE::V100::ProductKey

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ ProductKey

Returns a new instance of ProductKey.



1139
1140
1141
1142
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1139

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' productKey'
end

Instance Method Details

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

Yields:

  • (@b)


1143
1144
1145
1146
1147
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1143

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

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

Yields:

  • (@b)


1148
1149
1150
1151
1152
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1148

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