log_parser_notifier 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/log_parser_notifier +5 -3
- data/lib/log_parser_notifier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d112acf3131f8094ba04a49438e9dbd1188c73a
|
4
|
+
data.tar.gz: 84ab43df9b16f7f602718590cc0da6ae36e1b8f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b00a39a8e183d0f237a7b4961efa7bff779ebbf190fd7bf765d4ab6023c6032bf7238546099682ccba443a71b5d32f36f560a56bb95e1bd072dd577afbb07207
|
7
|
+
data.tar.gz: a6f82e185207e73f18a1b28be740b2e76895a98829fdf57de56e33f728a605db38fe881bb56606c4cfc91d8119138357308a3f66f5d5567ae0a0bcc3696d60c8
|
data/bin/log_parser_notifier
CHANGED
@@ -8,8 +8,10 @@ end
|
|
8
8
|
|
9
9
|
opts = Slop.parse do |o|
|
10
10
|
o.banner = 'usage: lib_parser_notifier [options] file_name'
|
11
|
-
o.
|
12
|
-
o.
|
11
|
+
o.on :c, :check_interval=, 'check interval (in minutes)', default: 5, as: Integer
|
12
|
+
o.on :verbose, 'enable verbose mode'
|
13
|
+
# o.integer '--check_interval', 'check interval (in minutes)', default: 5
|
14
|
+
# o.bool '-v', '--verbose', 'enable verbose mode'
|
13
15
|
o.on '--version', 'print the version' do
|
14
16
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'log_parser_notifier')
|
15
17
|
puts LogParserNotifier::VERSION
|
@@ -30,7 +32,7 @@ end
|
|
30
32
|
|
31
33
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'log_parser_notifier')
|
32
34
|
|
33
|
-
request_notifier = LogParserNotifier::RailsRequestNotifier.new(
|
35
|
+
request_notifier = LogParserNotifier::RailsRequestNotifier.new(ARGV.first)
|
34
36
|
|
35
37
|
while true
|
36
38
|
LogParserNotifier.logger.debug('waking up and checking log')
|