cruisecontrolrb_to_hipchat 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 +4 -4
- data/README.md +63 -21
- data/cruisecontrolrb_to_hipchat.gemspec +2 -2
- data/lib/cruisecontrolrb_to_hipchat/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb399bb7cbe2989220930dba9167277cbc0dee6c
|
4
|
+
data.tar.gz: 016d62ff0fd3922cb76be40e4cba1f10426257bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c80351256e5e0cfc878830740aba4f7358d3f9b0f468a20c2995d762770fd240526d91143212cd573eb5f1e760b8a5ae239b61a8d7ac96d3f9bafa23008c21
|
7
|
+
data.tar.gz: 8b492e809013e82f1e882f4679443e3b1b64c9b797fb9e9d9ce57c8292145a6de0af1b29c5a891be8ec3830028bb8953a86b3d788e0ac44d236418d36d8f2fc4
|
data/README.md
CHANGED
@@ -2,34 +2,76 @@ This is a little Sinatra app notifies Hipchat of any changes in the build status
|
|
2
2
|
|
3
3
|
Heroku-ready! Just follow these steps:
|
4
4
|
|
5
|
-
|
5
|
+
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
Install as a gem
|
8
8
|
|
9
|
-
|
9
|
+
gem install cruisecontrolrb_to_hipchat
|
10
10
|
|
11
|
-
|
11
|
+
or add to your Gemfile
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
heroku config:add CC_URL=your_cruise_control_url
|
13
|
+
```
|
14
|
+
# Gemfile
|
15
|
+
gem "cruisecontrolrb_to_hipchat"
|
16
|
+
```
|
18
17
|
|
19
|
-
|
18
|
+
and run `bundle install`
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
heroku config:add CC_USERNAME=your_username
|
24
|
-
heroku config:add CC_PASSWORD=your_password
|
25
|
-
|
26
|
-
heroku config:add POLLING_INTERVAL # polling interval in minutes. defaults to 1 minute.
|
27
|
-
heroku config:add HIPCHAT_FROM=cruise-control # who the messages are "from" in hipchat. defaults to 'cruise-control'
|
20
|
+
or from source
|
28
21
|
|
29
|
-
|
22
|
+
```
|
23
|
+
git clone git@github.com:zumobi/cruisecontrolrb_to_hipchat.git
|
24
|
+
cd cruisecontrolrb_to_hipchat
|
25
|
+
bundle install
|
26
|
+
rake build
|
27
|
+
```
|
30
28
|
|
31
|
-
|
29
|
+
## Configuration
|
32
30
|
|
33
|
-
|
31
|
+
Make sure to define the following environment variable as they are required in either
|
32
|
+
you `.profile` or `/etc/profile.d/cruisecontrolrc_to_hipchat.sh` (for all users)
|
34
33
|
|
35
|
-
|
34
|
+
```
|
35
|
+
HIPCHAT_AUTH_TOKEN=your_auth_token
|
36
|
+
HIPCHAT_ROOM_ID=your_room_id
|
37
|
+
CC_URL=your_cruise_control_url
|
38
|
+
```
|
39
|
+
|
40
|
+
The following are optionals
|
41
|
+
|
42
|
+
Basic auth for your CruiseControlrb install (recommended):
|
43
|
+
|
44
|
+
```
|
45
|
+
CC_USERNAME=your_username
|
46
|
+
CC_PASSWORD=your_password
|
47
|
+
```
|
48
|
+
|
49
|
+
```
|
50
|
+
POLLING_INTERVAL # polling interval in minutes. defaults to 1 minute.
|
51
|
+
HIPCHAT_FROM=cruise-control # who the messages are "from" in hipchat. defaults to 'cruise-control'
|
52
|
+
```
|
53
|
+
|
54
|
+
## Running
|
55
|
+
|
56
|
+
As this gem uses dante, options are best describes [here](http://github.com/nesquena/dante) but here are some very simple
|
57
|
+
setup
|
58
|
+
|
59
|
+
### Run in foreground and STDOUT output (to test most likely)
|
60
|
+
|
61
|
+
```
|
62
|
+
cruisecontrolrb_to_hipchat
|
63
|
+
```
|
64
|
+
|
65
|
+
### Run in foreground with logs
|
66
|
+
|
67
|
+
```
|
68
|
+
cruisecontrolrb_to_hipchat -l /var/log/myapp.log
|
69
|
+
```
|
70
|
+
|
71
|
+
### Run as a daemon with a pid file and logs
|
72
|
+
|
73
|
+
```
|
74
|
+
cruisecontrolrb_to_hipchat -d -P /var/run/myapp.pid -l /var/log/myapp.log
|
75
|
+
```
|
76
|
+
|
77
|
+
<img width="100px" src="http://1.bp.blogspot.com/-VYkLIx6dPTE/TapmnuECsJI/AAAAAAAAALY/L3c1FY4v--w/s1600/looney_tunes_thats_all_folks.jpg" />
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = CruisecontrolrbToHipchat::VERSION
|
9
9
|
spec.authors = ["epinault"]
|
10
10
|
spec.email = ["emmanuel.pinault@zumobi.com"]
|
11
|
-
spec.summary = %q{A simple daemon to report last build status from cruisecontrol}
|
12
|
-
spec.description = %q{Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat but with support of more recent api and multiple projects}
|
11
|
+
spec.summary = %q{A simple daemon to report last build status of projects and activities from cruisecontrol}
|
12
|
+
spec.description = %q{A simple daemon to report last build status of projects and activities from cruisecontrol. Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat but with support of more recent api and multiple projects}
|
13
13
|
spec.homepage = "http://github.com/zumobi/cruisecontrolrb_to_hipchat"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cruisecontrolrb_to_hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- epinault
|
@@ -108,7 +108,8 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description:
|
111
|
+
description: A simple daemon to report last build status of projects and activities
|
112
|
+
from cruisecontrol. Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat
|
112
113
|
but with support of more recent api and multiple projects
|
113
114
|
email:
|
114
115
|
- emmanuel.pinault@zumobi.com
|
@@ -153,5 +154,6 @@ rubyforge_project:
|
|
153
154
|
rubygems_version: 2.2.2
|
154
155
|
signing_key:
|
155
156
|
specification_version: 4
|
156
|
-
summary: A simple daemon to report last build status from
|
157
|
+
summary: A simple daemon to report last build status of projects and activities from
|
158
|
+
cruisecontrol
|
157
159
|
test_files: []
|