Class: FluentCommandBuilder::TeamFoundationTEE::V101::Shelve

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

Returns a new instance of Shelve.



1451
1452
1453
1454
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1451

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)


1465
1466
1467
1468
1469
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1465

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

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

Yields:

  • (@b)


1485
1486
1487
1488
1489
1490
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1485

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)


1455
1456
1457
1458
1459
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1455

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

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

Yields:

  • (@b)


1480
1481
1482
1483
1484
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1480

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

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

Yields:

  • (@b)


1470
1471
1472
1473
1474
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1470

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

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

Yields:

  • (@b)


1460
1461
1462
1463
1464
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1460

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

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

Yields:

  • (@b)


1475
1476
1477
1478
1479
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1475

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