Class: FluentCommandBuilder::TeamFoundationTEE::V100::Resolve

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, item_spec = nil) ⇒ Resolve

Returns a new instance of Resolve.



1259
1260
1261
1262
1263
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1259

def initialize(underlying_builder, item_spec=nil)
  super underlying_builder
  @b.append ' resolve'
  @b.append " #{@b.format item_spec}" unless item_spec.nil?
end

Instance Method Details

#auto(resolution) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1264
1265
1266
1267
1268
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1264

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

#convert_to_type(convert_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1279
1280
1281
1282
1283
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1279

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

#login(username, password = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1299
1300
1301
1302
1303
1304
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1299

def (username, password=nil)
  @b.append " -login:#{@b.format username}"
  @b.append ",#{@b.format_password password}" unless password.nil?
  yield @b if block_given?
  self
end

#new_name(path) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1289
1290
1291
1292
1293
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1289

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

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

Yields:

  • (@b)


1294
1295
1296
1297
1298
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1294

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

#override_type(override_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1274
1275
1276
1277
1278
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1274

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

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

Yields:

  • (@b)


1269
1270
1271
1272
1273
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1269

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

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

Yields:

  • (@b)


1284
1285
1286
1287
1288
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1284

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