Class: FluentCommandBuilder::Tf::V2010::Compare

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



626
627
628
629
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 626

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

Instance Method Details

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

Yields:

  • (@builder)


635
636
637
638
639
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 635

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

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

Yields:

  • (@builder)


650
651
652
653
654
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 650

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

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

Yields:

  • (@builder)


645
646
647
648
649
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 645

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

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

Yields:

  • (@builder)


640
641
642
643
644
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 640

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

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

Yields:

  • (@builder)


670
671
672
673
674
675
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 670

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)


665
666
667
668
669
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 665

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

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

Yields:

  • (@builder)


660
661
662
663
664
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 660

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

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

Yields:

  • (@builder)


655
656
657
658
659
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 655

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

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

Yields:

  • (@builder)


630
631
632
633
634
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 630

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