alerty 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -2
- data/alerty.gemspec +1 -1
- data/lib/alerty/cli.rb +5 -2
- 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: 7dc780dc6ff3b7cb73a5a2437a14c8d3b20dd6b9
|
4
|
+
data.tar.gz: 69c93803fae418ba85eb59209d7f72be131e7c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 024cebed5e8cdb6e2ba635b4843ad7eccd8aef3b7ae236d59a73fc23feb022fe90c1a97d74164ba7f96d7fd8631c0408d29ee2bbfaff1ba62ef1f3e20183db51
|
7
|
+
data.tar.gz: 001e13b2d87b2456fda46b973690fd1080c2ae676cc08f4e5d92db5f0a8b12cfe3948c3e5062d5fa0b6893855c2d9aafd25699cae56447db44b3036f3a150a7f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -43,9 +43,10 @@ $ alerty -c example.yml -- ls -l /something_not_exist
|
|
43
43
|
$ bin/alerty -h
|
44
44
|
-c, --config CONFIG_FILE config file path (default: /etc/alerty/alerty.yml)
|
45
45
|
--log LOG_FILE log file path (default: STDOUT)
|
46
|
-
|
46
|
+
-l, --log-level LOG_LEVEL log level (default: warn)
|
47
47
|
-t, --timeout SECONDS timeout the command (default: no timeout)
|
48
|
-
|
48
|
+
--lock LOCK_FILE exclusive lock file to prevent running a command duplicatedly (default: no lock)
|
49
|
+
-d, --debug debug mode (same with --log-level debug)
|
49
50
|
```
|
50
51
|
|
51
52
|
## Plugins
|
data/alerty.gemspec
CHANGED
data/lib/alerty/cli.rb
CHANGED
@@ -22,15 +22,18 @@ class Alerty
|
|
22
22
|
op.on('--log LOG_FILE', "log file path (default: STDOUT)") {|v|
|
23
23
|
opts[:log_path] = v
|
24
24
|
}
|
25
|
-
op.on('--log-level LOG_LEVEL', "log level (default: warn)") {|v|
|
25
|
+
op.on('-l', '--log-level LOG_LEVEL', "log level (default: warn)") {|v|
|
26
26
|
opts[:log_level] = v
|
27
27
|
}
|
28
28
|
op.on('-t', '--timeout SECONDS', "timeout the command (default: no timeout)") {|v|
|
29
29
|
opts[:timeout] = v.to_i
|
30
30
|
}
|
31
|
-
op.on('
|
31
|
+
op.on('--lock LOCK_FILE', "exclusive lock file to prevent running a command duplicatedly (default: no lock)") {|v|
|
32
32
|
opts[:lock_path] = v
|
33
33
|
}
|
34
|
+
op.on('-d', '--debug', "debug mode (same with --log-level debug)") {|v|
|
35
|
+
opts[:log_level] = 'debug'
|
36
|
+
}
|
34
37
|
|
35
38
|
op.parse!(argv)
|
36
39
|
opts[:command] = argv.join(' ')
|