Class: FluentCommandBuilder::AppCfgPython::V16::RequestLogs

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/appcfg_python_16.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, directory, output_file) ⇒ RequestLogs

Returns a new instance of RequestLogs.



404
405
406
407
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 404

def initialize(builder, directory, output_file)
  super builder
  @builder.append " request_logs #{@builder.format directory} #{@builder.format output_file}"
end

Instance Method Details

#append {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


413
414
415
416
417
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 413

def append
  @builder.append ' --append'
  yield @builder if block_given?
  self
end

#end_date(end_date) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


438
439
440
441
442
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 438

def end_date(end_date)
  @builder.append " --end_date=#{@builder.format end_date}"
  yield @builder if block_given?
  self
end

#include_all {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


433
434
435
436
437
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 433

def include_all
  @builder.append ' --include_all'
  yield @builder if block_given?
  self
end

#include_vhost {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


428
429
430
431
432
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 428

def include_vhost
  @builder.append ' --include_vhost'
  yield @builder if block_given?
  self
end

#num_days(num_days) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


408
409
410
411
412
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 408

def num_days(num_days)
  @builder.append " --num_days=#{@builder.format num_days}"
  yield @builder if block_given?
  self
end

#severity(severity) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


418
419
420
421
422
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 418

def severity(severity)
  @builder.append " --severity=#{@builder.format severity}"
  yield @builder if block_given?
  self
end

#vhost(vhost) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


423
424
425
426
427
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 423

def vhost(vhost)
  @builder.append " --vhost=#{@builder.format vhost}"
  yield @builder if block_given?
  self
end