eir 0.0.1 → 0.0.2
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 +17 -4
- data/lib/eir/app/puma.rb +2 -2
- data/lib/eir/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: 14131ba74a296eb9c7609a5f95f69b8d9c05a952
|
4
|
+
data.tar.gz: be87208b09ede61474983dec536136bc6d233edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e70f7b1a84cd033e39ab73cbe104df9a3a87d36077ed5d48a168076eed95f4c9a98948591c89c3d61afea62c92d2d0442afe27459cd9e158654775da943ecb34
|
7
|
+
data.tar.gz: 58fb726c385718abcd695c3dac8ee0f13dd7da6347c3c2e59f4b982793f92590598ef815a6be9922a3241e1cfd56221fdfe4e0f689562da1ddccdea5fc120abb
|
data/README.md
CHANGED
@@ -4,22 +4,35 @@ A really easy way to monitor the health of a list of endpoints over time.
|
|
4
4
|
|
5
5
|
## Installation and Usage
|
6
6
|
|
7
|
-
|
7
|
+
Add to your Gemfile:
|
8
8
|
|
9
|
-
|
9
|
+
source 'https://rubygems.org'
|
10
|
+
gem 'eir'
|
10
11
|
|
11
|
-
|
12
|
+
At your project root, create a `uris.yaml` YAML file of the URIs you wish to monitor, e.g.:
|
12
13
|
|
13
14
|
- http://www.google.co.uk : Google
|
14
15
|
- http://www.yahoo.co.uk : Yahoo
|
15
16
|
- http://www.itv.com : ITV
|
16
17
|
|
17
|
-
From the console, navigate to your
|
18
|
+
From the console, navigate to your project root and simply run:
|
18
19
|
|
19
20
|
$ eir
|
20
21
|
|
21
22
|
A lightweight Sinatra app will start at `http://localhost:8700`.
|
22
23
|
|
24
|
+
Both a pidfile and logs will be generated at `server.pid`, `eir_access.log` and `eir_error.log`.
|
25
|
+
|
26
|
+
A successfully running app should have a directory structure like this:
|
27
|
+
|
28
|
+
.
|
29
|
+
├── Gemfile
|
30
|
+
├── Gemfile.lock
|
31
|
+
├── eir_access.log
|
32
|
+
├── eir_error.log
|
33
|
+
├── server.pid
|
34
|
+
└── uris.yaml
|
35
|
+
|
23
36
|
## TODO
|
24
37
|
|
25
38
|
1. Test connection error cases
|
data/lib/eir/app/puma.rb
CHANGED
@@ -7,6 +7,6 @@ daemonize true
|
|
7
7
|
|
8
8
|
port 8700
|
9
9
|
|
10
|
-
stdout_log = "#{CURRENT_DIRECTORY}/
|
11
|
-
stderr_log = "#{CURRENT_DIRECTORY}/
|
10
|
+
stdout_log = "#{CURRENT_DIRECTORY}/eir_access.log"
|
11
|
+
stderr_log = "#{CURRENT_DIRECTORY}/eir_error.log"
|
12
12
|
stdout_redirect(stdout_log, stderr_log, true)
|
data/lib/eir/version.rb
CHANGED