Class: FluentCommandBuilder::TeamFoundation::V100::Unshelve

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_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.



1775
1776
1777
1778
1779
1780
1781
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1775

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)


1797
1798
1799
1800
1801
1802
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1797

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)


1782
1783
1784
1785
1786
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1782

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

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

Yields:

  • (@b)


1792
1793
1794
1795
1796
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1792

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

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

Yields:

  • (@b)


1787
1788
1789
1790
1791
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1787

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