Class: FluentCommandBuilder::Tf::V2010::Shelve

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, shelveset_name, item_spec) ⇒ Shelve

Returns a new instance of Shelve.



1545
1546
1547
1548
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1545

def initialize(builder, shelveset_name, item_spec)
  super builder
  @builder.append " shelve #{@builder.format shelveset_name} #{@builder.format item_spec}"
end

Instance Method Details

#comment(comment) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1559
1560
1561
1562
1563
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1559

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

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

Yields:

  • (@builder)


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

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

#move {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


1574
1575
1576
1577
1578
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1574

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

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

Yields:

  • (@builder)


1564
1565
1566
1567
1568
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1564

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

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

Yields:

  • (@builder)


1554
1555
1556
1557
1558
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1554

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

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

Yields:

  • (@builder)


1569
1570
1571
1572
1573
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1569

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