Class: FluentCommandBuilder::TeamFoundationTEE::V100::NewProfile

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, new_profile_name) ⇒ NewProfile

Returns a new instance of NewProfile.



1177
1178
1179
1180
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1177

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)


1186
1187
1188
1189
1190
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1186

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)


1191
1192
1193
1194
1195
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1191

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)


1181
1182
1183
1184
1185
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1181

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