downtime 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +18 -7
- data/bin/downtime +1 -1
- data/lib/downtime/version.rb +1 -1
- data/lib/downtime.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTdlODVlYzBjNzY0ZWU0NjFlMjUwOWNkOGVlZjc3MTgyMDQyYzJiNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDM1MGM3MDA5MTJhNTc2OTVjNDNhMjIxM2FkYjllMDdkZDEwYWVhYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmQ1YzQzYjc1ODgzNGI4NGNiOGNjZDk5ZDkyN2IzZGY2NWE3MDllNzE0MWY3
|
10
|
+
ZGNjZjRiNjA1ZWQ2ZDg0MzJmZWU3ZDUwMTE5MmM3NjVkNmUxNmE1OTI5YzM3
|
11
|
+
ZjZkMzNjMWZhYTJhOTM3ZmQ0NmU4ZTE1MTFlMTc2OGUxOTFlZDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDZkODQwOGU3YmVjMTJkZmFhYmJlZDY0YTFjNTc1NTEzYzZjN2QxNTZkNzEy
|
14
|
+
MTViYTU2YzVkZTkwMmFmNDJiZTUxOTkwZDBiMWI0NTIwMDE4NmJlMmQ0Mzli
|
15
|
+
ZjZjZWNkMzAzYmNlNjhhYjYxZGQ1YjdjMDFkY2E3OWJhMmM1MGE=
|
data/README.md
CHANGED
@@ -24,24 +24,35 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
Use as a cron-job (use [god]-gem if you like).
|
28
|
-
|
29
27
|
Call as `downtime`.
|
30
28
|
It will create a `downtime.log` file in the current working directory.
|
31
29
|
|
32
30
|
The file (`downtime.log`) will look like this:
|
33
31
|
|
34
32
|
# This file was generated by the downtime ruby gem.
|
35
|
-
2015-01-01-10-22 up till 2015-01-02-08-10
|
36
|
-
! went down after 1000 minutes
|
37
|
-
2015-01-02-08-10 down till 2015-01-03-08-40
|
38
|
-
! went up after 30 minutes
|
39
|
-
2015-01-02-08-40 up till 2015-01-03-08-45
|
33
|
+
2015-01-01-10-22 up till 2015-01-02-08-10 (1000 minutes)
|
34
|
+
! went down after 1000 minutes of uptime.
|
35
|
+
2015-01-02-08-10 down till 2015-01-03-08-40 (30 minutes)
|
36
|
+
! went up after 30 minutes of downtime.
|
37
|
+
2015-01-02-08-40 up till 2015-01-03-08-45 (5 minutes)
|
38
|
+
|
39
|
+
Use as a cron-job (use [god]-gem if you like), e.g. with `crontab -e`:
|
40
|
+
|
41
|
+
# m h dom mon dow command
|
42
|
+
*/5 * * * * cd /home/downtime-service/downtime && ~/.rvm/wrappers/default/downtime
|
43
|
+
|
44
|
+
(this assumes you use `rvm` and the given path exists), will result in information put into `/home/downtime-service/downtime/downtime.log`.
|
45
|
+
|
40
46
|
|
41
47
|
## Caveats
|
42
48
|
|
43
49
|
Its assumed you run in CET timezone.
|
44
50
|
|
51
|
+
## License
|
52
|
+
|
53
|
+
Copyright 2015 Felix Wolfsteller, Siedlungsgenossenschaft Ökodorf e.G.
|
54
|
+
all code licensed under the GPL, version 3, which is included in the file `gpl-3.0.txt`.
|
55
|
+
|
45
56
|
## Contributing
|
46
57
|
|
47
58
|
0. Contact me, either by creating an issue or sending me a mail - sometimes stuff is more easily done at two!
|
data/bin/downtime
CHANGED
data/lib/downtime/version.rb
CHANGED
data/lib/downtime.rb
CHANGED