Class: FluentCommandBuilder::Tf::V2010::Checkin
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Tf::V2010::Checkin
- Defined in:
- lib/fluent_command_builder/command_builders/tf_2010.rb
Instance Method Summary collapse
- #author(author_name) {|@builder| ... } ⇒ Object
- #bypass {|@builder| ... } ⇒ Object
- #comment(comment) {|@builder| ... } ⇒ Object
- #force {|@builder| ... } ⇒ Object
-
#initialize(builder, item_spec = nil) ⇒ Checkin
constructor
A new instance of Checkin.
- #login(username, password = nil) {|@builder| ... } ⇒ Object
- #no_prompt {|@builder| ... } ⇒ Object
- #notes(notes) {|@builder| ... } ⇒ Object
- #override(reason) {|@builder| ... } ⇒ Object
- #recursive {|@builder| ... } ⇒ Object
- #saved {|@builder| ... } ⇒ Object
- #validate {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, item_spec = nil) ⇒ Checkin
Returns a new instance of Checkin.
353 354 355 356 357 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 353 def initialize(builder, item_spec=nil) super builder @builder.append ' checkin' @builder.append " #{@builder.format item_spec}" unless item_spec.nil? end |
Instance Method Details
#author(author_name) {|@builder| ... } ⇒ Object
358 359 360 361 362 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 358 def () @builder.append " /author:#{@builder.format }" yield @builder if block_given? self end |
#bypass {|@builder| ... } ⇒ Object
398 399 400 401 402 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 398 def bypass @builder.append ' /bypass' yield @builder if block_given? self end |
#comment(comment) {|@builder| ... } ⇒ Object
363 364 365 366 367 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 363 def comment(comment) @builder.append " /comment:#{@builder.format comment}" yield @builder if block_given? self end |
#force {|@builder| ... } ⇒ Object
409 410 411 412 413 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 409 def force @builder.append ' /force' yield @builder if block_given? self end |
#login(username, password = nil) {|@builder| ... } ⇒ Object
403 404 405 406 407 408 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 403 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
368 369 370 371 372 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 368 def no_prompt @builder.append ' /noPrompt' yield @builder if block_given? self end |
#notes(notes) {|@builder| ... } ⇒ Object
373 374 375 376 377 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 373 def notes(notes) @builder.append " /notes:#{@builder.format notes, ';', '='}" yield @builder if block_given? self end |
#override(reason) {|@builder| ... } ⇒ Object
378 379 380 381 382 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 378 def override(reason) @builder.append " /override:#{@builder.format reason}" yield @builder if block_given? self end |
#recursive {|@builder| ... } ⇒ Object
383 384 385 386 387 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 383 def recursive @builder.append ' /recursive' yield @builder if block_given? self end |
#saved {|@builder| ... } ⇒ Object
388 389 390 391 392 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 388 def saved @builder.append ' /saved' yield @builder if block_given? self end |
#validate {|@builder| ... } ⇒ Object
393 394 395 396 397 |
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 393 def validate @builder.append ' /validate' yield @builder if block_given? self end |