Class: FluentCommandBuilder::Tf::V2010::CompareWithCurrentWorkspaceVersion

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


618
619
620
621
622
623
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 618

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)


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

Yields:

  • (@builder)


608
609
610
611
612
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 608

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

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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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

Yields:

  • (@builder)


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