Class: FluentCommandBuilder::Tf::TEE2010::Compare
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Compare
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #format(format) {|@builder| ... } ⇒ Object
- #ignore_case {|@builder| ... } ⇒ Object
- #ignore_eol {|@builder| ... } ⇒ Object
- #ignore_space {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec, item_spec2) ⇒ Compare
constructor
A new instance of Compare.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #options {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #type(file_type) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
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
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
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
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
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
640 641 642 643 644 645 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 640 def login(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
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
630 631 632 633 634 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 630 def @builder.append ' -options' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
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
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 |