Class: FluentCommandBuilder::Tf::TEE2010::ReconcileBuild

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) ⇒ ReconcileBuild

Returns a new instance of ReconcileBuild.



1255
1256
1257
1258
1259
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1255

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

Instance Method Details

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

Yields:

  • (@builder)


1271
1272
1273
1274
1275
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1271

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

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

Yields:

  • (@builder)


1260
1261
1262
1263
1264
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1260

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)


1265
1266
1267
1268
1269
1270
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1265

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