Class: FluentCommandBuilder::Tf::TEE2010::ReconcileForgetBuild

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, build_name, item_spec = nil) ⇒ ReconcileForgetBuild

Returns a new instance of ReconcileForgetBuild.



1301
1302
1303
1304
1305
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1301

def initialize(builder, build_name, item_spec=nil)
  super builder
  @builder.append " reconcile -forgetBuild:#{@builder.format build_name}"
  @builder.append " #{@builder.format item_spec}" unless item_spec.nil?
end

Instance Method Details

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

Yields:

  • (@builder)


1317
1318
1319
1320
1321
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1317

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

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

Yields:

  • (@builder)


1306
1307
1308
1309
1310
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1306

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

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

Yields:

  • (@builder)


1311
1312
1313
1314
1315
1316
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1311

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