Class: FluentCommandBuilder::TeamFoundation::V100::Compare

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec, item_spec2) ⇒ Compare

Returns a new instance of Compare.



642
643
644
645
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 642

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

Instance Method Details

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

Yields:

  • (@b)


651
652
653
654
655
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 651

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

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

Yields:

  • (@b)


666
667
668
669
670
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 666

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

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

Yields:

  • (@b)


661
662
663
664
665
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 661

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

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

Yields:

  • (@b)


656
657
658
659
660
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 656

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

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

Yields:

  • (@b)


686
687
688
689
690
691
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 686

def (username, password=nil)
  @b.append " /login:#{@b.format username}"
  @b.append ",#{@b.format_password password}" unless password.nil?
  yield @b if block_given?
  self
end

#no_prompt {|@b| ... } ⇒ Object

Yields:

  • (@b)


681
682
683
684
685
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 681

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

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

Yields:

  • (@b)


676
677
678
679
680
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 676

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


646
647
648
649
650
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 646

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