Class: FluentCommandBuilder::Tf::TEE2010::Changeset
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::TEE2010::Changeset
- Defined in:
- lib/fluent_command_builder/command_builders/tf_tee_2010.rb
Instance Method Summary collapse
- #collection(team_project_collection_url) {|@builder| ... } ⇒ Object
- #comment(comment) {|@builder| ... } ⇒ Object
-
#initialize(builder, changeset_number = nil) ⇒ Changeset
constructor
A new instance of Changeset.
- #latest {|@builder| ... } ⇒ Object
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #notes(notes) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, changeset_number = nil) ⇒ Changeset
Returns a new instance of Changeset.
303 304 305 306 307 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 303 def initialize(builder, changeset_number=nil) super builder @builder.append ' changeset' @builder.append " #{@builder.format changeset_number}" unless changeset_number.nil? end |
Instance Method Details
#collection(team_project_collection_url) {|@builder| ... } ⇒ Object
323 324 325 326 327 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 323 def collection(team_project_collection_url) @builder.append " -collection:#{@builder.format team_project_collection_url}" yield @builder if block_given? self end |
#comment(comment) {|@builder| ... } ⇒ Object
308 309 310 311 312 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 308 def comment(comment) @builder.append " -comment:#{@builder.format comment}" yield @builder if block_given? self end |
#latest {|@builder| ... } ⇒ Object
328 329 330 331 332 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 328 def latest @builder.append ' -latest' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
333 334 335 336 337 338 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 333 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
318 319 320 321 322 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 318 def no_prompt @builder.append ' -noPrompt' yield @builder if block_given? self end |
#notes(notes) {|@builder| ... } ⇒ Object
313 314 315 316 317 |
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 313 def notes(notes) @builder.append " -notes:#{@builder.format notes, ';', '='}" yield @builder if block_given? self end |