eir 0.0.1 → 0.0.2

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: e2465bf45d8f376b3f4c991d3b10a0350b18aeec
4
- data.tar.gz: 552c7430315e447ac15cfebf2099bad9767b383d
3
+ metadata.gz: 14131ba74a296eb9c7609a5f95f69b8d9c05a952
4
+ data.tar.gz: be87208b09ede61474983dec536136bc6d233edc
5
5
  SHA512:
6
- metadata.gz: 48babb50b062caad346fe6591e59c604e0b02d30942134cc1081e4a8ce5dfa989cdc65a1eab62cb729ad58645292ebe70a389796397d832ff6bf4b907ae63f6d
7
- data.tar.gz: 622a41d0c8cca3b86e1dc6d97999c3593d786f0132e50a3969f5c8f390ace720bef602bb5532325295b75ee252781054d800d43c669a0366b0abc1cc6feef773
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
- Install:
7
+ Add to your Gemfile:
8
8
 
9
- $ gem install eir
9
+ source 'https://rubygems.org'
10
+ gem 'eir'
10
11
 
11
- In a new directory, create a `uris.yaml` YAML file of the URIs you wish to monitor:
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 new directory and simply run:
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}/access.log"
11
- stderr_log = "#{CURRENT_DIRECTORY}/error.log"
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
@@ -1,3 +1,3 @@
1
1
  module Eir
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Snape