workaholic-cron 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +25 -0
- data/lib/workaholic.rb +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e09600ad1a3055e282925209d623d2cdd2890cdc
|
4
|
+
data.tar.gz: 1435cfe904d6242f760805f1edaf2c9d6a7875a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2ebfc0a0520eb5ba7876f378e2ab944d1e38606cd5d72058d2e4cc81743256b5faf750b372fda4d1da9d21f3c9a66bf46a17248d694a4da4f8f74230e60ff12
|
7
|
+
data.tar.gz: af789fb71ff005f0a13f4de8cfe1edbfdcbf61c12676eff40de83304a6a4a2b093801e03ef7d080cd0b951d38f854a36aa08f2a6de3f3901a5f4a047f67a883c
|
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
### Workaholic
|
2
|
+
==========
|
3
|
+
Ruby Gem to find long running child processes like cron jobs.
|
4
|
+
|
5
|
+
### Usage
|
6
|
+
|
7
|
+
Install workaholic and look for cron jobs that have been running for
|
8
|
+
more than 5 minutes.
|
9
|
+
|
10
|
+
`gem install workaholic-cron`
|
11
|
+
|
12
|
+
`require 'workaholic'`
|
13
|
+
|
14
|
+
`workers = Workaholic.new 'cron', 300`
|
15
|
+
|
16
|
+
`workers.scan`
|
17
|
+
|
18
|
+
### Retrun
|
19
|
+
|
20
|
+
Returns a Hash of pid:elapsedtime of all long-running cron jobs.
|
21
|
+
|
22
|
+
`=> {:"4389"=>52205, :"4335"=>52216, :"4342"=>52216}`
|
23
|
+
|
24
|
+
### License
|
25
|
+
The MIT license.
|
data/lib/workaholic.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workaholic-cron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alaa Qutaish
|
@@ -14,9 +14,11 @@ description: A simple gem to find cron jobs that have been running for long time
|
|
14
14
|
email: alaa.qutaish@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
|
-
extra_rdoc_files:
|
17
|
+
extra_rdoc_files:
|
18
|
+
- README.md
|
18
19
|
files:
|
19
20
|
- lib/workaholic.rb
|
21
|
+
- README.md
|
20
22
|
homepage: http://rubygems.org/gems/workaholic
|
21
23
|
licenses:
|
22
24
|
- MIT
|