Class: FluentCommandBuilder::Tf::TEE2010::Compare

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, item_spec, item_spec2) ⇒ Compare

Returns a new instance of Compare.



596
597
598
599
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 596

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)


605
606
607
608
609
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 605

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

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

Yields:

  • (@builder)


620
621
622
623
624
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 620

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

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

Yields:

  • (@builder)


615
616
617
618
619
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 615

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

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

Yields:

  • (@builder)


610
611
612
613
614
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 610

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

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

Yields:

  • (@builder)


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

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)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


600
601
602
603
604
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 600

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