Class: FluentCommandBuilder::TeamFoundationTEE::V101::ReconcileChangeset

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, changeset_name, item_spec = nil) ⇒ ReconcileChangeset



1314
1315
1316
1317
1318
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1314

def initialize(underlying_builder, changeset_name, item_spec=nil)
  super underlying_builder
  @b.append " reconcile -changeset:#{@b.format changeset_name}"
  @b.append " #{@b.format item_spec}" unless item_spec.nil?
end

Instance Method Details

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

Yields:

  • (@b)


1330
1331
1332
1333
1334
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1330

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

#team_project(team_project_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1319
1320
1321
1322
1323
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1319

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

#workspace(workspace_name, workspace_owner = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1324
1325
1326
1327
1328
1329
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1324

def workspace(workspace_name, workspace_owner=nil)
  @b.append " -workspace:#{@b.format workspace_name}"
  @b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
  yield @b if block_given?
  self
end