Class: FluentCommandBuilder::Tf::V2010::Status

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_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.



1633
1634
1635
1636
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1633

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)


1637
1638
1639
1640
1641
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1637

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)


1660
1661
1662
1663
1664
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1660

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

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

Yields:

  • (@builder)


1642
1643
1644
1645
1646
1647
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1642

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)


1665
1666
1667
1668
1669
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1665

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

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

Yields:

  • (@builder)


1654
1655
1656
1657
1658
1659
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1654

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)


1670
1671
1672
1673
1674
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1670

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)


1648
1649
1650
1651
1652
1653
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1648

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