Class: FluentCommandBuilder::Tf::V2010::Status
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Status
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #format(format) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Status
constructor
A new instance of Status.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #shelveset(shelveset_name, shelveset_owner = nil) {|@builder| ... } ⇒ Object
- #user(user_name) {|@builder| ... } ⇒ Object
- #workspace(workspace_name, workspace_owner = nil) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
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
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
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
1642 1643 1644 1645 1646 1647 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1642 def login(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
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
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
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
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 |