Class: FluentCommandBuilder::Tf::V2010::CompareWithCurrentWorkspaceVersion
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::CompareWithCurrentWorkspaceVersion
- 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) ⇒ CompareWithCurrentWorkspaceVersion
constructor
A new instance of CompareWithCurrentWorkspaceVersion.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #options {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #type(file_type) {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ CompareWithCurrentWorkspaceVersion
569 570 571 572 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 569 def initialize(builder, item_spec) super builder @builder.append " difference #{@builder.format item_spec}" end |
Instance Method Details
#format(format) {|@builder| ... } ⇒ Object
583 584 585 586 587 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 583 def format(format) @builder.append " /format:#{@builder.format format}" yield @builder if block_given? self end |
#ignore_case {|@builder| ... } ⇒ Object
598 599 600 601 602 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 598 def ignore_case @builder.append ' /ignoreCase' yield @builder if block_given? self end |
#ignore_eol {|@builder| ... } ⇒ Object
593 594 595 596 597 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 593 def ignore_eol @builder.append ' /ignoreEol' yield @builder if block_given? self end |
#ignore_space {|@builder| ... } ⇒ Object
588 589 590 591 592 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 588 def ignore_space @builder.append ' /ignoreSpace' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
618 619 620 621 622 623 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 618 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
613 614 615 616 617 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 613 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#options {|@builder| ... } ⇒ Object
608 609 610 611 612 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 608 def @builder.append ' /options' yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
603 604 605 606 607 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 603 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#type(file_type) {|@builder| ... } ⇒ Object
578 579 580 581 582 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 578 def type(file_type) @builder.append " /type:#{@builder.format file_type}" yield @builder if block_given? self end |
#version(version_spec) {|@builder| ... } ⇒ Object
573 574 575 576 577 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 573 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |