Class: FluentCommandBuilder::Tf::V2010::CheckinShelveset
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::CheckinShelveset
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #author(author_name) {|@builder| ... } ⇒ Object
- #bypass {|@builder| ... } ⇒ Object
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #force {|@builder| ... } ⇒ Object
-
#initialize(builder, shelveset_name, shelveset_owner = nil) ⇒ CheckinShelveset
constructor
A new instance of CheckinShelveset.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, shelveset_name, shelveset_owner = nil) ⇒ CheckinShelveset
Returns a new instance of CheckinShelveset.
416 417 418 419 420 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 416 def initialize(builder, shelveset_name, shelveset_owner=nil) super builder @builder.append " checkin /shelveset:#{@builder.format shelveset_name}" @builder.append ";#{@builder.format shelveset_owner}" unless shelveset_owner.nil? end |
Instance Method Details
#author(author_name) {|@builder| ... } ⇒ Object
442 443 444 445 446 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 442 def () @builder.append " /author:#{@builder.format author_name}" yield @builder if block_given? self end |
#bypass {|@builder| ... } ⇒ Object
421 422 423 424 425 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 421 def bypass @builder.append ' /bypass' yield @builder if block_given? self end |
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
437 438 439 440 441 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 437 def collection(team_project_collection_url) @builder.append " /collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#force {|@builder| ... } ⇒ Object
447 448 449 450 451 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 447 def force @builder.append ' /force' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
431 432 433 434 435 436 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 431 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 |
#no_prompt {|@builder| ... } ⇒ Object
426 427 428 429 430 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 426 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |