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

Returns a new instance of NewProfile.



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

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)


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

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)


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

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)


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

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