Class: FluentCommandBuilder::TeamFoundation::V100::Unshelve
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::Unshelve
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.
1776
1777
1778
1779
1780
1781
1782
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1776
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
1798
1799
1800
1801
1802
1803
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1798
def login(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
1783
1784
1785
1786
1787
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1783
def move
@b.append ' /move'
yield @b if block_given?
self
end
|
#no_prompt {|@b| ... } ⇒ Object
1793
1794
1795
1796
1797
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1793
def no_prompt
@b.append ' /noPrompt'
yield @b if block_given?
self
end
|
#recursive {|@b| ... } ⇒ Object
1788
1789
1790
1791
1792
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1788
def recursive
@b.append ' /recursive'
yield @b if block_given?
self
end
|