Class: FluentCommandBuilder::Tf::TEE2010::Status

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, item_spec) ⇒ Status

Returns a new instance of Status.



1504
1505
1506
1507
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1504

def initialize(builder, item_spec)
  super builder
  @builder.append " status #{@builder.format item_spec}"
end

Instance Method Details

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

Yields:

  • (@builder)


1508
1509
1510
1511
1512
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1508

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

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

Yields:

  • (@builder)


1531
1532
1533
1534
1535
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1531

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

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

Yields:

  • (@builder)


1513
1514
1515
1516
1517
1518
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1513

def (username, password=nil)
  @builder.append " -login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


1536
1537
1538
1539
1540
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1536

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

#shelveset(shelveset_name, shelveset_owner = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1525
1526
1527
1528
1529
1530
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1525

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

#user(user_name) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1541
1542
1543
1544
1545
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1541

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

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

Yields:

  • (@builder)


1519
1520
1521
1522
1523
1524
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1519

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