Skip to content

Commit

Permalink
The version up to 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
i2bskn committed May 21, 2013
1 parent 5dc2382 commit 26b63bb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/nginx_utils/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NginxUtils
VERSION = "0.0.4"
VERSION = "0.0.5"
end

0 comments on commit 26b63bb

Please sign in to comment.