capper 2.0.0.rc2 → 2.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ Type=forking
6
6
  PIDFile=<%= pid_path %>/delayed_job.%I.pid
7
7
  ExecStart=<%= delayed_job_script %> start %I
8
8
  ExecStop=<%= delayed_job_script %> stop %I
9
+ Restart=always
9
10
 
10
11
  [Install]
11
12
  WantedBy=default.target
@@ -6,6 +6,7 @@ Type=forking
6
6
  PIDFile=<%= thin_pidfile %>
7
7
  ExecStart=<%= thin_script %> start
8
8
  ExecStop=/bin/kill -QUIT $MAINPID
9
+ Restart=always
9
10
 
10
11
  [Install]
11
12
  WantedBy=default.target
@@ -7,6 +7,7 @@ PIDFile=<%= unicorn_pidfile %>
7
7
  ExecStart=<%= unicorn_script %> start
8
8
  ExecReload=/bin/kill -HUP $MAINPID
9
9
  ExecStop=/bin/kill -QUIT $MAINPID
10
+ Restart=always
10
11
 
11
12
  [Install]
12
13
  WantedBy=default.target
@@ -7,6 +7,7 @@ PIDFile=<%= uwsgi_pidfile %>
7
7
  ExecStart=<%= uwsgi_script %> start
8
8
  ExecReload=/bin/kill -HUP $MAINPID
9
9
  ExecStop=/bin/kill -QUIT $MAINPID
10
+ Restart=always
10
11
 
11
12
  [Install]
12
13
  WantedBy=default.target
@@ -2,7 +2,12 @@ module Capper
2
2
  module Utils
3
3
  module Multistage
4
4
 
5
- def stage(name, &block)
5
+ def stage(*args, &block)
6
+ if args.size == 0
7
+ return fetch(:current_stage, nil)
8
+ end
9
+
10
+ name = args.first
6
11
  stages = fetch(:stages, [])
7
12
 
8
13
  if stages.include?(name)
data/lib/capper/uwsgi.rb CHANGED
@@ -23,7 +23,7 @@ namespace :uwsgi do
23
23
  :mode => "0755")
24
24
  upload_template_file("uwsgi.service",
25
25
  uwsgi_service,
26
- :mode => "0755")
26
+ :mode => "0644")
27
27
  systemctl "daemon-reload"
28
28
  systemctl :enable, :uwsgi
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module Capper
2
- VERSION = "2.0.0.rc2"
2
+ VERSION = "2.0.0.rc3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc2
4
+ version: 2.0.0.rc3
5
5
  prerelease: 6
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: 2013-03-17 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis