chrisrec 0.1.2 → 0.1.3

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.
Files changed (48) hide show
  1. data/Manifest +44 -0
  2. data/Rakefile +2 -2
  3. data/chrisrec.gemspec +3 -3
  4. data/pkg/chrisrec-0.1.2/Manifest +88 -0
  5. data/pkg/chrisrec-0.1.2/README +1 -0
  6. data/pkg/chrisrec-0.1.2/Rakefile +21 -0
  7. data/pkg/chrisrec-0.1.2/chrisrec.gemspec +30 -0
  8. data/pkg/chrisrec-0.1.2/lib/backgroundrb/backgroundrb.rb +22 -0
  9. data/pkg/chrisrec-0.1.2/lib/chrisrec.rb +14 -0
  10. data/pkg/chrisrec-0.1.2/lib/console/console.rb +19 -0
  11. data/pkg/chrisrec-0.1.2/lib/daemon/daemon.rb +134 -0
  12. data/pkg/chrisrec-0.1.2/lib/gitosis/gitosis.rb +131 -0
  13. data/pkg/chrisrec-0.1.2/lib/jekyll/jekyll.rb +87 -0
  14. data/pkg/chrisrec-0.1.2/lib/memcached/memcached.rb +140 -0
  15. data/pkg/chrisrec-0.1.2/lib/munin/munin.rb +135 -0
  16. data/pkg/chrisrec-0.1.2/lib/mysql/mysql.rake +95 -0
  17. data/pkg/chrisrec-0.1.2/lib/mysql/mysql.rb +51 -0
  18. data/pkg/chrisrec-0.1.2/lib/rake/rake.rb +19 -0
  19. data/pkg/chrisrec-0.1.2/lib/rakecron/rakecron.rb +35 -0
  20. data/pkg/chrisrec-0.1.2/lib/starling/starling.rb +124 -0
  21. data/pkg/chrisrec-0.1.2/lib/static/static.rb +80 -0
  22. data/pkg/chrisrec-0.1.2/lib/tomcat/tomcat.rb +202 -0
  23. data/pkg/chrisrec-0.1.2/lib/workling/workling.rb +72 -0
  24. data/pkg/chrisrec-0.1.2/template/daemon/daemon-init-script.erb +59 -0
  25. data/pkg/chrisrec-0.1.2/template/daemon/monit.conf.erb +4 -0
  26. data/pkg/chrisrec-0.1.2/template/jekyll/httpd-vhost-jekyll.conf.erb +16 -0
  27. data/pkg/chrisrec-0.1.2/template/memcached/memcached-conf.erb +1 -0
  28. data/pkg/chrisrec-0.1.2/template/memcached/memcached.erb +59 -0
  29. data/pkg/chrisrec-0.1.2/template/memcached/monit.conf.erb +8 -0
  30. data/pkg/chrisrec-0.1.2/template/memcached/start-memcached.erb +118 -0
  31. data/pkg/chrisrec-0.1.2/template/munin/httpd-vhost-munin.conf.erb +20 -0
  32. data/pkg/chrisrec-0.1.2/template/munin/munin.conf.erb +70 -0
  33. data/pkg/chrisrec-0.1.2/template/munin/munin_nginx_vhost.conf.erb +24 -0
  34. data/pkg/chrisrec-0.1.2/template/rakecron/rakecron.erb +12 -0
  35. data/pkg/chrisrec-0.1.2/template/starling/monit.conf.erb +14 -0
  36. data/pkg/chrisrec-0.1.2/template/starling/starling-init-script.erb +69 -0
  37. data/pkg/chrisrec-0.1.2/template/static/httpd-vhost-static.conf.erb +16 -0
  38. data/pkg/chrisrec-0.1.2/template/tomcat/conf/server.xml.erb +33 -0
  39. data/pkg/chrisrec-0.1.2/template/tomcat/conf/web.xml +1194 -0
  40. data/pkg/chrisrec-0.1.2/template/tomcat/logs/empty.txt +1 -0
  41. data/pkg/chrisrec-0.1.2/template/tomcat/monit.conf.erb +8 -0
  42. data/pkg/chrisrec-0.1.2/template/tomcat/temp/empty.txt +1 -0
  43. data/pkg/chrisrec-0.1.2/template/tomcat/tomcat.erb +28 -0
  44. data/pkg/chrisrec-0.1.2/template/tomcat/webapps/empty.txt +1 -0
  45. data/pkg/chrisrec-0.1.2/template/tomcat/work/empty.txt +1 -0
  46. data/pkg/chrisrec-0.1.2/template/workling/monit.conf.erb +4 -0
  47. data/pkg/chrisrec-0.1.2/template/workling/workling-init-script.erb +56 -0
  48. metadata +48 -4
@@ -0,0 +1 @@
1
+ placeholder
@@ -0,0 +1,8 @@
1
+ check host tomcat_<%= tomcat_port %> with address <%= tomcat_address %>
2
+ group tomcat_<%= tomcat_port %>
3
+ start program = "/etc/init.d/tomcat_<%= tomcat_port %> start"
4
+ stop program = "/etc/init.d/tomcat_<%= tomcat_port %> stop"
5
+
6
+ if failed host <%= tomcat_address %> port <%= tomcat_port %>
7
+ with timeout 10 seconds
8
+ then alert
@@ -0,0 +1 @@
1
+ placeholder
@@ -0,0 +1,28 @@
1
+ #! /bin/sh
2
+ #
3
+ # Tomcat auto-start
4
+ #
5
+ # description: Auto-starts tomcat
6
+ # processname: tomcat
7
+ # pidfile: /var/run/tomcat.pid
8
+
9
+ export JAVA_HOME=/usr/lib/jvm/java-6-sun
10
+ export JAVA_OPTS="-Xmx800m -Xms800m"
11
+ export CATALINA_HOME="/usr/local/tomcat"
12
+ export CATALINA_BASE="<%=deploy_to%>/tomcat"
13
+
14
+
15
+ case $1 in
16
+ start)
17
+ sh $CATALINA_HOME/bin/startup.sh
18
+ ;;
19
+ stop)
20
+ sh $CATALINA_HOME/bin/shutdown.sh
21
+ sleep 5
22
+ ;;
23
+ restart)
24
+ sh $CATALINA_HOME/bin/shutdown.sh
25
+ sh $CATALINA_HOME/bin/startup.sh
26
+ ;;
27
+ esac
28
+ exit 0
@@ -0,0 +1 @@
1
+ placeholder
@@ -0,0 +1 @@
1
+ placeholder
@@ -0,0 +1,4 @@
1
+ check process workling_<%= starling_port %> with pidfile <%=deploy_to%>/current/log/workling.pid
2
+ group workling_<%= starling_port %>
3
+ start program = "/etc/init.d/workling_<%= starling_port %> start"
4
+ stop program = "/etc/init.d/workling_<%= starling_port %> stop"
@@ -0,0 +1,56 @@
1
+ #! /bin/sh
2
+ ### BEGIN INIT INFO
3
+ # Provides: workling
4
+ # Required-Start: $local_fs $remote_fs
5
+ # Required-Stop: $local_fs $remote_fs
6
+ # Default-Start: 2 3 4 5
7
+ # Default-Stop: S 0 1 6
8
+ # Short-Description: workling queue processor
9
+ # Description: workling queue processor
10
+ ### END INIT INFO
11
+ # Author:
12
+ # Version:
13
+
14
+ set -e
15
+
16
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
17
+ NAME=workling
18
+ DESC="Workling"
19
+ SCRIPTNAME=/etc/init.d/$NAME
20
+
21
+ . /lib/lsb/init-functions
22
+
23
+ d_start() {
24
+ log_begin_msg "Starting Workling Server..."
25
+ sh -c 'cd <%=deploy_to%>/current/; RAILS_ENV=<%=rails_env%> ./script/workling_client start' \
26
+ || log_end_msg 1
27
+ log_end_msg 0
28
+ }
29
+
30
+ d_stop() {
31
+ log_begin_msg "Stopping Workling Server..."
32
+ sh -c 'cd <%=deploy_to%>/current/; RAILS_ENV=<%=rails_env%> ./script/workling_client stop' \
33
+ || log_end_msg 1
34
+ log_end_msg 0
35
+ }
36
+
37
+ case "$1" in
38
+ start)
39
+ d_start
40
+ ;;
41
+ stop)
42
+ d_stop
43
+ ;;
44
+ restart|force-reload|reload)
45
+ d_stop
46
+ sleep 2
47
+ d_start
48
+ ;;
49
+ *)
50
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
51
+ exit 3
52
+ ;;
53
+ esac
54
+
55
+ exit 0
56
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chrisrec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Douglas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-10 00:00:00 +10:00
18
+ date: 2010-09-02 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -64,6 +64,50 @@ files:
64
64
  - lib/static/static.rb
65
65
  - lib/tomcat/tomcat.rb
66
66
  - lib/workling/workling.rb
67
+ - pkg/chrisrec-0.1.2/Manifest
68
+ - pkg/chrisrec-0.1.2/README
69
+ - pkg/chrisrec-0.1.2/Rakefile
70
+ - pkg/chrisrec-0.1.2/chrisrec.gemspec
71
+ - pkg/chrisrec-0.1.2/lib/backgroundrb/backgroundrb.rb
72
+ - pkg/chrisrec-0.1.2/lib/chrisrec.rb
73
+ - pkg/chrisrec-0.1.2/lib/console/console.rb
74
+ - pkg/chrisrec-0.1.2/lib/daemon/daemon.rb
75
+ - pkg/chrisrec-0.1.2/lib/gitosis/gitosis.rb
76
+ - pkg/chrisrec-0.1.2/lib/jekyll/jekyll.rb
77
+ - pkg/chrisrec-0.1.2/lib/memcached/memcached.rb
78
+ - pkg/chrisrec-0.1.2/lib/munin/munin.rb
79
+ - pkg/chrisrec-0.1.2/lib/mysql/mysql.rake
80
+ - pkg/chrisrec-0.1.2/lib/mysql/mysql.rb
81
+ - pkg/chrisrec-0.1.2/lib/rake/rake.rb
82
+ - pkg/chrisrec-0.1.2/lib/rakecron/rakecron.rb
83
+ - pkg/chrisrec-0.1.2/lib/starling/starling.rb
84
+ - pkg/chrisrec-0.1.2/lib/static/static.rb
85
+ - pkg/chrisrec-0.1.2/lib/tomcat/tomcat.rb
86
+ - pkg/chrisrec-0.1.2/lib/workling/workling.rb
87
+ - pkg/chrisrec-0.1.2/template/daemon/daemon-init-script.erb
88
+ - pkg/chrisrec-0.1.2/template/daemon/monit.conf.erb
89
+ - pkg/chrisrec-0.1.2/template/jekyll/httpd-vhost-jekyll.conf.erb
90
+ - pkg/chrisrec-0.1.2/template/memcached/memcached-conf.erb
91
+ - pkg/chrisrec-0.1.2/template/memcached/memcached.erb
92
+ - pkg/chrisrec-0.1.2/template/memcached/monit.conf.erb
93
+ - pkg/chrisrec-0.1.2/template/memcached/start-memcached.erb
94
+ - pkg/chrisrec-0.1.2/template/munin/httpd-vhost-munin.conf.erb
95
+ - pkg/chrisrec-0.1.2/template/munin/munin.conf.erb
96
+ - pkg/chrisrec-0.1.2/template/munin/munin_nginx_vhost.conf.erb
97
+ - pkg/chrisrec-0.1.2/template/rakecron/rakecron.erb
98
+ - pkg/chrisrec-0.1.2/template/starling/monit.conf.erb
99
+ - pkg/chrisrec-0.1.2/template/starling/starling-init-script.erb
100
+ - pkg/chrisrec-0.1.2/template/static/httpd-vhost-static.conf.erb
101
+ - pkg/chrisrec-0.1.2/template/tomcat/conf/server.xml.erb
102
+ - pkg/chrisrec-0.1.2/template/tomcat/conf/web.xml
103
+ - pkg/chrisrec-0.1.2/template/tomcat/logs/empty.txt
104
+ - pkg/chrisrec-0.1.2/template/tomcat/monit.conf.erb
105
+ - pkg/chrisrec-0.1.2/template/tomcat/temp/empty.txt
106
+ - pkg/chrisrec-0.1.2/template/tomcat/tomcat.erb
107
+ - pkg/chrisrec-0.1.2/template/tomcat/webapps/empty.txt
108
+ - pkg/chrisrec-0.1.2/template/tomcat/work/empty.txt
109
+ - pkg/chrisrec-0.1.2/template/workling/monit.conf.erb
110
+ - pkg/chrisrec-0.1.2/template/workling/workling-init-script.erb
67
111
  - template/daemon/daemon-init-script.erb
68
112
  - template/daemon/monit.conf.erb
69
113
  - template/jekyll/httpd-vhost-jekyll.conf.erb