Class: FluentCommandBuilder::Tf::V2010::Branches
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Branches
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec) ⇒ Branches
constructor
A new instance of Branches.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #version(version_spec) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec) ⇒ Branches
Returns a new instance of Branches.
293 294 295 296 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 293 def initialize(builder, item_spec) super builder @builder.append " branches #{@builder.format item_spec}" end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
302 303 304 305 306 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 302 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
307 308 309 310 311 312 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 307 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 |
#version(version_spec) {|@builder| ... } ⇒ Object
297 298 299 300 301 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 297 def version(version_spec) @builder.append " /version:#{@builder.format version_spec}" yield @builder if block_given? self end |