Class: FluentCommandBuilder::Tf::TEE2010::CompareWithShelvesetVersion

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, shelveset_item_spec) ⇒ CompareWithShelvesetVersion

Returns a new instance of CompareWithShelvesetVersion.



648
649
650
651
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 648

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

Instance Method Details

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

Yields:

  • (@builder)


663
664
665
666
667
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 663

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

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

Yields:

  • (@builder)


678
679
680
681
682
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 678

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

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

Yields:

  • (@builder)


673
674
675
676
677
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 673

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

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

Yields:

  • (@builder)


668
669
670
671
672
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 668

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

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

Yields:

  • (@builder)


698
699
700
701
702
703
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 698

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)


693
694
695
696
697
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 693

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

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

Yields:

  • (@builder)


688
689
690
691
692
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 688

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

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

Yields:

  • (@builder)


683
684
685
686
687
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 683

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

#shelveset(shelveset_name, shelveset_owner = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


652
653
654
655
656
657
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 652

def shelveset(shelveset_name, shelveset_owner=nil)
  @builder.append " -shelveset:#{@builder.format shelveset_name}"
  @builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


658
659
660
661
662
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 658

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