Class: FluentCommandBuilder::AppCfgPython::V16::RequestLogs
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::AppCfgPython::V16::RequestLogs
- Defined in:
- lib/fluent_command_builder/command_builders/appcfg_python_16.rb
Instance Method Summary collapse
- #append {|@builder| ... } ⇒ Object
- #end_date(end_date) {|@builder| ... } ⇒ Object
- #include_all {|@builder| ... } ⇒ Object
- #include_vhost {|@builder| ... } ⇒ Object
-
#initialize(builder, directory, output_file) ⇒ RequestLogs
constructor
A new instance of RequestLogs.
- #num_days(num_days) {|@builder| ... } ⇒ Object
- #severity(severity) {|@builder| ... } ⇒ Object
- #vhost(vhost) {|@builder| ... } ⇒ Object
Methods inherited from CommandBase
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
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
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
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
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
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
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
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 |