tvd-unicorn 0.0.7 → 0.0.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -16,17 +16,7 @@ template "#{node[:release_dir]}/libexec/server" do
16
16
  mode 0755
17
17
  end
18
18
 
19
- template "#{node[:release_dir]}/libexec/unicorn_redeploy" do
20
- source "unicorn_redeploy.erb"
21
- mode 0755
22
- end
23
-
24
- template "#{node[:release_dir]}/libexec/unicorn_root" do
25
- source "unicorn_root.erb"
26
- mode 0755
27
- end
28
-
29
- template "#{node[:release_dir]}/libexec/#{node[:app_name]}" do
30
- source "init.erb"
19
+ template "#{node[:release_dir]}/libexec/unicorn_#{node[:app_name]}" do
20
+ source "deploy.erb"
31
21
  mode 0755
32
22
  end
@@ -1,4 +1,4 @@
1
- Unicorn::HttpServer::START_CTX[0] = "<%= File.join(node[:project_dir], node[:app_dir], "libexec", "unicorn_redeploy") %>"
1
+ Unicorn::HttpServer::START_CTX[0] = "<%= File.join(node[:project_dir], node[:app_dir], "libexec", "unicorn_#{node[:app_name]}") %>"
2
2
 
3
3
  working_directory "<%= File.join(node[:project_dir], node[:app_dir]) %>"
4
4
  pid "<%= File.join(node[:project_dir], node[:run_dir], "unicorn.pid") %>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvd-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-25 00:00:00.000000000 Z
12
+ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: microwave
@@ -36,10 +36,8 @@ files:
36
36
  - cookbooks/unicorn/attributes/default.rb
37
37
  - cookbooks/unicorn/recipes/default.rb
38
38
  - cookbooks/unicorn/templates/default/config.erb
39
- - cookbooks/unicorn/templates/default/init.erb
39
+ - cookbooks/unicorn/templates/default/deploy.erb
40
40
  - cookbooks/unicorn/templates/default/server.erb
41
- - cookbooks/unicorn/templates/default/unicorn_redeploy.erb
42
- - cookbooks/unicorn/templates/default/unicorn_root.erb
43
41
  - lib/development.rb
44
42
  - lib/tvd-unicorn.rb
45
43
  - lib/tvd-unicorn/version.rb
@@ -1,60 +0,0 @@
1
- #! /bin/sh
2
-
3
- ### BEGIN INIT INFO
4
- # Provides: <%= node[:app_name] %>
5
- # Required-Start: $all
6
- # Required-Stop: $all
7
- # Default-Start: 2 3 4 5
8
- # Default-Stop: 0 1 6
9
- # Short-Description: starts the unicorn server for <%= node[:app_name] %>
10
- # Description: starts unicorn server for <%= node[:app_name] %> using start-stop-daemon
11
- ### END INIT INFO
12
-
13
- NAME="<%= node[:app_name] %>"
14
- DESC="unicorn for $NAME"
15
- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
16
- DAEMON="<%= File.join(node[:project_dir], node[:app_dir], "libexec", "unicorn_root") %>"
17
- PIDFILE="<%= File.join(node[:project_dir], node[:run_dir], "unicorn.pid") %>"
18
-
19
- set -e
20
-
21
- . /lib/lsb/init-functions
22
-
23
- case "$1" in
24
- start)
25
- echo -n "Starting $DESC: "
26
- start-stop-daemon --start --quiet --pidfile $PIDFILE \
27
- --exec $DAEMON start || true
28
- echo "$NAME."
29
- ;;
30
-
31
- stop)
32
- echo -n "Stopping $DESC: "
33
- kill -TERM $(cat $PIDFILE) || true
34
- echo "$NAME."
35
- ;;
36
-
37
- restart|force-reload)
38
- echo -n "Restarting $DESC: "
39
- kill -TERM $(cat $PIDFILE) || true
40
- sleep 1
41
- start-stop-daemon --start --quiet --pidfile $PIDFILE \
42
- --exec $DAEMON start || true
43
- echo "$NAME."
44
- ;;
45
- reload)
46
- echo -n "Reloading $DESC configuration: "
47
- kill -USR2 $(cat $PIDFILE) || true
48
- echo "$NAME."
49
- ;;
50
- status)
51
- status_of_proc -p $PIDFILE "$DAEMON" $NAME && exit 0 || exit $?
52
- ;;
53
- *)
54
- N=/etc/init.d/$NAME
55
- echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
56
- exit 1
57
- ;;
58
- esac
59
-
60
- exit 0
@@ -1,4 +0,0 @@
1
- #!/bin/bash -e
2
-
3
- cd "<%= File.join(node[:project_dir], node[:app_dir]) %>"
4
- exec sudo -u <%= node[:app_user] %> libexec/server unicorn start