Class: FluentCommandBuilder::TeamFoundation::V100::Branch
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::Branch
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, old_item, new_item) ⇒ Branch
Returns a new instance of Branch.
257
258
259
260
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 257
def initialize(underlying_builder, old_item, new_item)
super underlying_builder
@b.append " branch #{@b.format old_item} #{@b.format new_item}"
end
|
Instance Method Details
#author(author_name) {|@b| ... } ⇒ Object
296
297
298
299
300
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 296
def author(author_name)
@b.append " /author:#{@b.format author_name}"
yield @b if block_given?
self
end
|
#checkin {|@b| ... } ⇒ Object
286
287
288
289
290
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 286
def checkin
@b.append ' /checkin'
yield @b if block_given?
self
end
|
291
292
293
294
295
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 291
def ()
@b.append " /comment:#{@b.format comment}"
yield @b if block_given?
self
end
|
#lock(lock_type) {|@b| ... } ⇒ Object
271
272
273
274
275
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 271
def lock(lock_type)
@b.append " /lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
301
302
303
304
305
306
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 301
def login(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_get {|@b| ... } ⇒ Object
266
267
268
269
270
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 266
def no_get
@b.append ' /noGet'
yield @b if block_given?
self
end
|
#no_prompt {|@b| ... } ⇒ Object
276
277
278
279
280
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 276
def no_prompt
@b.append ' /noPrompt'
yield @b if block_given?
self
end
|
#silent {|@b| ... } ⇒ Object
281
282
283
284
285
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 281
def silent
@b.append ' /silent'
yield @b if block_given?
self
end
|
#version(version_spec) {|@b| ... } ⇒ Object
261
262
263
264
265
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 261
def version(version_spec)
@b.append " /version:#{@b.format version_spec}"
yield @b if block_given?
self
end
|