Class: FluentCommandBuilder::TeamFoundationTEE::V101::EditProfile

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, existing_profile_name) ⇒ EditProfile

Returns a new instance of EditProfile.



1188
1189
1190
1191
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1188

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

Instance Method Details

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

Yields:

  • (@b)


1197
1198
1199
1200
1201
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1197

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)


1202
1203
1204
1205
1206
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1202

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)


1192
1193
1194
1195
1196
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1192

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