Class: FluentCommandBuilder::AppCfgPython::V16::UploadData
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::AppCfgPython::V16::UploadData
- Defined in:
- lib/fluent_command_builder/command_builders/appcfg_python_16.rb
Instance Method Summary collapse
- #auth_domain(auth_domain) {|@builder| ... } ⇒ Object
- #bandwidth_limit(bandwidth_limit) {|@builder| ... } ⇒ Object
- #batch_size(batch_size) {|@builder| ... } ⇒ Object
- #config_file(config_file) {|@builder| ... } ⇒ Object
- #db_filename(db_filename) {|@builder| ... } ⇒ Object
- #dry_run {|@builder| ... } ⇒ Object
- #filename(filename) {|@builder| ... } ⇒ Object
- #has_header {|@builder| ... } ⇒ Object
- #http_limit(http_limit) {|@builder| ... } ⇒ Object
-
#initialize(builder, directory) ⇒ UploadData
constructor
A new instance of UploadData.
- #kind(kind) {|@builder| ... } ⇒ Object
- #loader_opts(loader_opts) {|@builder| ... } ⇒ Object
- #log_file(log_file) {|@builder| ... } ⇒ Object
- #namespace(namespace) {|@builder| ... } ⇒ Object
- #num_threads(num_threads) {|@builder| ... } ⇒ Object
- #rps_limit(rps_limit) {|@builder| ... } ⇒ Object
- #url(url) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(builder, directory) ⇒ UploadData
Returns a new instance of UploadData.
466 467 468 469 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 466 def initialize(builder, directory) super builder @builder.append " upload_data #{@builder.format directory}" end |
Instance Method Details
#auth_domain(auth_domain) {|@builder| ... } ⇒ Object
500 501 502 503 504 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 500 def auth_domain(auth_domain) @builder.append " --auth_domain=#{@builder.format auth_domain}" yield @builder if block_given? self end |
#bandwidth_limit(bandwidth_limit) {|@builder| ... } ⇒ Object
480 481 482 483 484 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 480 def bandwidth_limit(bandwidth_limit) @builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}" yield @builder if block_given? self end |
#batch_size(batch_size) {|@builder| ... } ⇒ Object
475 476 477 478 479 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 475 def batch_size(batch_size) @builder.append " --batch_size=#{@builder.format batch_size}" yield @builder if block_given? self end |
#config_file(config_file) {|@builder| ... } ⇒ Object
545 546 547 548 549 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 545 def config_file(config_file) @builder.append " --config_file=#{@builder.format config_file}" yield @builder if block_given? self end |
#db_filename(db_filename) {|@builder| ... } ⇒ Object
495 496 497 498 499 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 495 def db_filename(db_filename) @builder.append " --db_filename=#{@builder.format db_filename}" yield @builder if block_given? self end |
#dry_run {|@builder| ... } ⇒ Object
510 511 512 513 514 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 510 def dry_run @builder.append ' --dry_run' yield @builder if block_given? self end |
#filename(filename) {|@builder| ... } ⇒ Object
525 526 527 528 529 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 525 def filename(filename) @builder.append " --filename=#{@builder.format filename}" yield @builder if block_given? self end |
#has_header {|@builder| ... } ⇒ Object
535 536 537 538 539 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 535 def has_header @builder.append ' --has_header' yield @builder if block_given? self end |
#http_limit(http_limit) {|@builder| ... } ⇒ Object
490 491 492 493 494 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 490 def http_limit(http_limit) @builder.append " --http_limit=#{@builder.format http_limit}" yield @builder if block_given? self end |
#kind(kind) {|@builder| ... } ⇒ Object
530 531 532 533 534 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 530 def kind(kind) @builder.append " --kind=#{@builder.format kind}" yield @builder if block_given? self end |
#loader_opts(loader_opts) {|@builder| ... } ⇒ Object
540 541 542 543 544 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 540 def loader_opts(loader_opts) @builder.append " --loader_opts=#{@builder.format loader_opts}" yield @builder if block_given? self end |
#log_file(log_file) {|@builder| ... } ⇒ Object
505 506 507 508 509 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 505 def log_file(log_file) @builder.append " --log_file=#{@builder.format log_file}" yield @builder if block_given? self end |
#namespace(namespace) {|@builder| ... } ⇒ Object
515 516 517 518 519 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 515 def namespace(namespace) @builder.append " --namespace=#{@builder.format namespace}" yield @builder if block_given? self end |
#num_threads(num_threads) {|@builder| ... } ⇒ Object
520 521 522 523 524 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 520 def num_threads(num_threads) @builder.append " --num_threads=#{@builder.format num_threads}" yield @builder if block_given? self end |
#rps_limit(rps_limit) {|@builder| ... } ⇒ Object
485 486 487 488 489 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 485 def rps_limit(rps_limit) @builder.append " --rps_limit=#{@builder.format rps_limit}" yield @builder if block_given? self end |
#url(url) {|@builder| ... } ⇒ Object
470 471 472 473 474 |
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 470 def url(url) @builder.append " --url=#{@builder.format url}" yield @builder if block_given? self end |