Class: FluentCommandBuilder::TeamFoundationTEE::V101::Unshelve
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V101::Unshelve
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 = nil, username = nil, item_spec = nil) ⇒ Unshelve
Returns a new instance of Unshelve.
1666
1667
1668
1669
1670
1671
1672
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1666
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
1688
1689
1690
1691
1692
1693
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1688
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
1673
1674
1675
1676
1677
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1673
def move
@b.append ' -move'
yield @b if block_given?
self
end
|
#no_prompt {|@b| ... } ⇒ Object
1683
1684
1685
1686
1687
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1683
def no_prompt
@b.append ' -noPrompt'
yield @b if block_given?
self
end
|
#recursive {|@b| ... } ⇒ Object
1678
1679
1680
1681
1682
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1678
def recursive
@b.append ' -recursive'
yield @b if block_given?
self
end
|