Class: FluentCommandBuilder::Tf::V2010::Shelvesets
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Shelvesets
- 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, shelveset_name = nil) ⇒ Shelvesets
constructor
A new instance of Shelvesets.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #owner(owner_name) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, shelveset_name = nil) ⇒ Shelvesets
Returns a new instance of Shelvesets.
1605 1606 1607 1608 1609 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1605 def initialize(builder, shelveset_name=nil) super builder @builder.append ' shelvesets' @builder.append " #{@builder.format shelveset_name}" unless shelveset_name.nil? end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
1620 1621 1622 1623 1624 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1620 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
1615 1616 1617 1618 1619 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1615 def format(format) @builder.append " /format:#{@builder.format format}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
1625 1626 1627 1628 1629 1630 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1625 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 |
#owner(owner_name) {|@builder| ... } ⇒ Object
1610 1611 1612 1613 1614 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1610 def owner(owner_name) @builder.append " /owner:#{@builder.format owner_name}" yield @builder if block_given? self end |