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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed50701fa9c60c4eeb6a23f0d95cac72949d1274
4
- data.tar.gz: 98656e48c9a30c688340ce1c24b2293aff3893da
3
+ metadata.gz: 7dc780dc6ff3b7cb73a5a2437a14c8d3b20dd6b9
4
+ data.tar.gz: 69c93803fae418ba85eb59209d7f72be131e7c0d
5
5
  SHA512:
6
- metadata.gz: 5d67e7c6ba8a66a28b2de8d464d3a429fb10b1b6694e0957b5adf4eb85841b977c369538d4a189dc852e42ac999b6500556cb1fc0c3a8687d4e8d399ce0b9d32
7
- data.tar.gz: e3c3ba190183bfff89960a8b0391f163735334ec842afed46081f1932d49d770c838bd782f8b7d86e163eea9a8f043c4cf20a991bb02a77b3fbeda6015781a1e
6
+ metadata.gz: 024cebed5e8cdb6e2ba635b4843ad7eccd8aef3b7ae236d59a73fc23feb022fe90c1a97d74164ba7f96d7fd8631c0408d29ee2bbfaff1ba62ef1f3e20183db51
7
+ data.tar.gz: 001e13b2d87b2456fda46b973690fd1080c2ae676cc08f4e5d92db5f0a8b12cfe3948c3e5062d5fa0b6893855c2d9aafd25699cae56447db44b3036f3a150a7f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.0.7 (2015/08/15)
2
+
3
+ Enhancements:
4
+
5
+ * Change -l option from --lock to --log-level
6
+ * Add -d (--debug) option, same with -l debug
7
+
1
8
  # 0.0.6 (2015/08/14)
2
9
 
3
10
  Enhancements:
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
- --log-level LOG_LEVEL log level (default: warn
46
+ -l, --log-level LOG_LEVEL log level (default: warn)
47
47
  -t, --timeout SECONDS timeout the command (default: no timeout)
48
- -l, --lock LOCK_FILE exclusive lock file to prevent running a command duplicatedly (default: no lock)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "alerty"
3
- gem.version = '0.0.6'
3
+ gem.version = '0.0.7'
4
4
  gem.author = ['Naotoshi Seo']
5
5
  gem.email = ['sonots@gmail.com']
6
6
  gem.homepage = 'https://github.com/sonots/alerty'
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('-l', '--lock LOCK_FILE', "exclusive lock file to prevent running a command duplicatedly (default: no lock)") {|v|
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(' ')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alerty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo