Class: FluentCommandBuilder::Tf::V2010::Changeset
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Changeset
- Defined in:
- lib/fluent_command_builder/command_builders/tf_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.
315 316 317 318 319 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 315 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
335 336 337 338 339 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 335 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
320 321 322 323 324 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 320 def comment(comment) @builder.append " /comment:#{@builder.format comment}" yield @builder if block_given? self end |
#latest {|@builder| ... } ⇒ Object
340 341 342 343 344 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 340 def latest @builder.append ' /latest' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
345 346 347 348 349 350 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 345 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
330 331 332 333 334 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 330 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#notes(notes) {|@builder| ... } ⇒ Object
325 326 327 328 329 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 325 def notes(notes) @builder.append " /notes:#{@builder.format notes, ';', '='}" yield @builder if block_given? self end |