Class: FluentCommandBuilder::TeamFoundationTEE::V100::ReplaceShelveset

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, shelveset_name) ⇒ ReplaceShelveset

Returns a new instance of ReplaceShelveset.



1306
1307
1308
1309
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1306

def initialize(underlying_builder, shelveset_name)
  super underlying_builder
  @b.append " shelve -replace #{@b.format shelveset_name}"
end

Instance Method Details

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

Yields:

  • (@b)


1310
1311
1312
1313
1314
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1310

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

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

Yields:

  • (@b)


1325
1326
1327
1328
1329
1330
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1325

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

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

Yields:

  • (@b)


1320
1321
1322
1323
1324
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1320

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

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

Yields:

  • (@b)


1315
1316
1317
1318
1319
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1315

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