Class: FluentCommandBuilder::Tf::V2010::Compare
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Compare
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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
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
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
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
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
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
670 671 672 673 674 675 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 670 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
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
660 661 662 663 664 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 660 def @builder.append ' /options' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
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
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 |