Class: FluentCommandBuilder::TeamFoundation::V100::Shelve

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

Returns a new instance of Shelve.



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

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)


1575
1576
1577
1578
1579
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1575

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

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

Yields:

  • (@b)


1595
1596
1597
1598
1599
1600
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1595

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)


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

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

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

Yields:

  • (@b)


1590
1591
1592
1593
1594
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1590

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

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

Yields:

  • (@b)


1580
1581
1582
1583
1584
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1580

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


1585
1586
1587
1588
1589
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1585

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