Class: FluentCommandBuilder::TeamFoundationTEE::V100::Shelve

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, item_spec) ⇒ Shelve

Returns a new instance of Shelve.



1333
1334
1335
1336
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1333

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

Instance Method Details

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

Yields:

  • (@b)


1347
1348
1349
1350
1351
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1347

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

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

Yields:

  • (@b)


1367
1368
1369
1370
1371
1372
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1367

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

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

Yields:

  • (@b)


1337
1338
1339
1340
1341
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1337

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

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

Yields:

  • (@b)


1362
1363
1364
1365
1366
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1362

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

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

Yields:

  • (@b)


1352
1353
1354
1355
1356
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1352

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

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

Yields:

  • (@b)


1342
1343
1344
1345
1346
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1342

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

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

Yields:

  • (@b)


1357
1358
1359
1360
1361
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1357

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