From 26b63bb81757c06c0e41eb541cbaa04c70e00645 Mon Sep 17 00:00:00 2001 From: i2bskn Date: Tue, 21 May 2013 12:32:05 +0900 Subject: [PATCH] The version up to 0.0.5 --- README.md | 19 ++++++++++++++++++- lib/nginx_utils/version.rb | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d27ccbb..cc61b94 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,30 @@ Or install it yourself as: ## Usage +From console: + + $ nginx_logrotate -h + Usage: nginx_logrotate [options] + -d, --[no-]debug Debug mode. Run only log output to STDOUT. + --script_log=VAL Log file for script. + --log_level=VAL Log level of script log. + --root_dir=VAL Root directory of Nginx. + --target_logs=VAL Specify logs of target. + --retention=VAL Specify in days the retention period of log. + --pid_file=VAL PID file of Nginx + $ nginx_status -h + Usage: nginx_status [options] + --only-value The output only the value. + +From ruby: + ```ruby require 'nginx_utils' ``` ### Logrotate -Logs of rename target: `Dir.glob "#{root_dir}/**/#{target_logs}"` +Logs of rename target: `Dir.glob "#{root_dir}/**/#{target_logs}"` Logs of delete target: `Dir.glob "#{root_dir}/**/#{target_logs}.*"` ```ruby diff --git a/lib/nginx_utils/version.rb b/lib/nginx_utils/version.rb index 2c9a5c6..15d21ca 100644 --- a/lib/nginx_utils/version.rb +++ b/lib/nginx_utils/version.rb @@ -1,3 +1,3 @@ module NginxUtils - VERSION = "0.0.4" + VERSION = "0.0.5" end