Class: FluentCommandBuilder::Tf::TEE2010::Merge

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, source, destination) ⇒ Merge

Returns a new instance of Merge.



1009
1010
1011
1012
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1009

def initialize(builder, source, destination)
  super builder
  @builder.append " merge #{@builder.format source} #{@builder.format destination}"
end

Instance Method Details

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

Yields:

  • (@builder)


1048
1049
1050
1051
1052
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1048

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

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

Yields:

  • (@builder)


1023
1024
1025
1026
1027
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1023

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

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

Yields:

  • (@builder)


1063
1064
1065
1066
1067
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1063

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

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

Yields:

  • (@builder)


1028
1029
1030
1031
1032
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1028

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

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

Yields:

  • (@builder)


1018
1019
1020
1021
1022
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1018

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

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

Yields:

  • (@builder)


1068
1069
1070
1071
1072
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1068

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

#lock(lock_type) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1038
1039
1040
1041
1042
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1038

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

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

Yields:

  • (@builder)


1078
1079
1080
1081
1082
1083
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1078

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_implicit_baseless {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1058
1059
1060
1061
1062
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1058

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

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

Yields:

  • (@builder)


1073
1074
1075
1076
1077
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1073

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

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

Yields:

  • (@builder)


1053
1054
1055
1056
1057
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1053

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

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

Yields:

  • (@builder)


1043
1044
1045
1046
1047
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1043

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

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

Yields:

  • (@builder)


1013
1014
1015
1016
1017
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1013

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

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

Yields:

  • (@builder)


1033
1034
1035
1036
1037
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1033

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