Class: FluentCommandBuilder::Tf::V2010::CompareWithShelvesetVersion

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_item_spec) ⇒ CompareWithShelvesetVersion

Returns a new instance of CompareWithShelvesetVersion.



678
679
680
681
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 678

def initialize(builder, shelveset_item_spec)
  super builder
  @builder.append " difference #{@builder.format shelveset_item_spec}"
end

Instance Method Details

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

Yields:

  • (@builder)


693
694
695
696
697
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 693

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

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

Yields:

  • (@builder)


708
709
710
711
712
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 708

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

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

Yields:

  • (@builder)


703
704
705
706
707
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 703

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

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

Yields:

  • (@builder)


698
699
700
701
702
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 698

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

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

Yields:

  • (@builder)


728
729
730
731
732
733
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 728

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

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

Yields:

  • (@builder)


723
724
725
726
727
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 723

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

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

Yields:

  • (@builder)


718
719
720
721
722
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 718

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

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

Yields:

  • (@builder)


713
714
715
716
717
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 713

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

#shelveset(shelveset_name, shelveset_owner = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


682
683
684
685
686
687
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 682

def shelveset(shelveset_name, shelveset_owner=nil)
  @builder.append " /shelveset:#{@builder.format shelveset_name}"
  @builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
  yield @builder if block_given?
  self
end

#type(file_type) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


688
689
690
691
692
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 688

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