Class: FluentCommandBuilder::TeamFoundationTEE::V101::NewProfile

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, new_profile_name) ⇒ NewProfile



1209
1210
1211
1212
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1209

def initialize(underlying_builder, new_profile_name)
  super underlying_builder
  @b.append " profile -new #{@b.format new_profile_name}"
end

Instance Method Details

#boolean(property_name, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1218
1219
1220
1221
1222
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1218

def boolean(property_name, value)
  @b.append " -boolean:#{@b.format property_name}=#{@b.format value}"
  yield @b if block_given?
  self
end

#number(property_name, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1223
1224
1225
1226
1227
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1223

def number(property_name, value)
  @b.append " -number:#{@b.format property_name}=#{@b.format value}"
  yield @b if block_given?
  self
end

#string(property_name, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1213
1214
1215
1216
1217
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1213

def string(property_name, value)
  @b.append " -string:#{@b.format property_name}=#{@b.format value}"
  yield @b if block_given?
  self
end