Class: FluentCommandBuilder::TeamFoundation::V100::Merge

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_100.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.



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

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)


1138
1139
1140
1141
1142
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1138

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

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

Yields:

  • (@b)


1113
1114
1115
1116
1117
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1113

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

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

Yields:

  • (@b)


1153
1154
1155
1156
1157
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1153

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

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

Yields:

  • (@b)


1118
1119
1120
1121
1122
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1118

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

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

Yields:

  • (@b)


1108
1109
1110
1111
1112
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1108

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

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

Yields:

  • (@b)


1158
1159
1160
1161
1162
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1158

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

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

Yields:

  • (@b)


1128
1129
1130
1131
1132
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1128

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)


1168
1169
1170
1171
1172
1173
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1168

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)


1148
1149
1150
1151
1152
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1148

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

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

Yields:

  • (@b)


1163
1164
1165
1166
1167
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1163

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

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

Yields:

  • (@b)


1143
1144
1145
1146
1147
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1143

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

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

Yields:

  • (@b)


1133
1134
1135
1136
1137
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1133

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

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

Yields:

  • (@b)


1103
1104
1105
1106
1107
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1103

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

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

Yields:

  • (@b)


1123
1124
1125
1126
1127
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1123

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