Class: FluentCommandBuilder::TeamFoundationTEE::V101::Merge

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, source, destination) ⇒ Merge

Returns a new instance of Merge.



1045
1046
1047
1048
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1045

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

Instance Method Details

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

Yields:

  • (@b)


1084
1085
1086
1087
1088
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1084

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

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

Yields:

  • (@b)


1059
1060
1061
1062
1063
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1059

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

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

Yields:

  • (@b)


1099
1100
1101
1102
1103
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1099

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

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

Yields:

  • (@b)


1064
1065
1066
1067
1068
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1064

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

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

Yields:

  • (@b)


1054
1055
1056
1057
1058
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1054

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

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

Yields:

  • (@b)


1104
1105
1106
1107
1108
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1104

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

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

Yields:

  • (@b)


1074
1075
1076
1077
1078
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1074

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

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

Yields:

  • (@b)


1114
1115
1116
1117
1118
1119
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1114

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

Yields:

  • (@b)


1094
1095
1096
1097
1098
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1094

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

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

Yields:

  • (@b)


1109
1110
1111
1112
1113
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1109

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

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

Yields:

  • (@b)


1089
1090
1091
1092
1093
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1089

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


1049
1050
1051
1052
1053
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1049

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

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

Yields:

  • (@b)


1069
1070
1071
1072
1073
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1069

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