Class: FluentCommandBuilder::Tf::TEE2010::Branches
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Branches
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_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.
281 282 283 284 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 281 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
290 291 292 293 294 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 290 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
295 296 297 298 299 300 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 295 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
285 286 287 288 289 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 285 def version(version_spec) @builder.append " -version:#{@builder.format version_spec}" yield @builder if block_given? self end |