Class: FluentCommandBuilder::TeamFoundation::V100::Merges

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, destination, source = nil) ⇒ Merges

Returns a new instance of Merges.



1176
1177
1178
1179
1180
1181
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1176

def initialize(underlying_builder, destination, source=nil)
  super underlying_builder
  @b.append ' merges'
  @b.append " #{@b.format source}" unless source.nil?
  @b.append " #{@b.format destination}"
end

Instance Method Details

#collection(team_project_collection_url) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1208
1209
1210
1211
1212
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1208

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

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

Yields:

  • (@b)


1187
1188
1189
1190
1191
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1187

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

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

Yields:

  • (@b)


1192
1193
1194
1195
1196
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1192

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

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

Yields:

  • (@b)


1197
1198
1199
1200
1201
1202
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1197

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

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

Yields:

  • (@b)


1182
1183
1184
1185
1186
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1182

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

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

Yields:

  • (@b)


1203
1204
1205
1206
1207
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1203

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