Class: FluentCommandBuilder::TeamFoundationTEE::V100::Unshelve

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

Returns a new instance of Unshelve.



1548
1549
1550
1551
1552
1553
1554
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1548

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

Instance Method Details

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

Yields:

  • (@b)


1570
1571
1572
1573
1574
1575
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1570

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)


1555
1556
1557
1558
1559
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1555

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

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

Yields:

  • (@b)


1565
1566
1567
1568
1569
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1565

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

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

Yields:

  • (@b)


1560
1561
1562
1563
1564
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1560

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