Class: FluentCommandBuilder::Tf::TEE2010::CompareWithCurrentWorkspaceVersion

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) ⇒ CompareWithCurrentWorkspaceVersion

Returns a new instance of CompareWithCurrentWorkspaceVersion.



539
540
541
542
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 539

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

Instance Method Details

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

Yields:

  • (@builder)


553
554
555
556
557
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 553

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

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

Yields:

  • (@builder)


568
569
570
571
572
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 568

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

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

Yields:

  • (@builder)


563
564
565
566
567
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 563

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

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

Yields:

  • (@builder)


558
559
560
561
562
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 558

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

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

Yields:

  • (@builder)


588
589
590
591
592
593
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 588

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)


583
584
585
586
587
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 583

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

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

Yields:

  • (@builder)


578
579
580
581
582
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 578

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

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

Yields:

  • (@builder)


573
574
575
576
577
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 573

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

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

Yields:

  • (@builder)


548
549
550
551
552
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 548

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

#version(version_spec) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


543
544
545
546
547
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 543

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