capi 0.0.1 → 0.1.1
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/README.md +22 -0
- data/capi.gemspec +1 -1
- data/lib/capi/unicorn.rb +1 -2
- data/lib/capi/version.rb +1 -1
- metadata +16 -4
- data/README +0 -0
data/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Capi
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
Capistrano tasks
|
|
6
|
+
|
|
7
|
+
## Installing
|
|
8
|
+
|
|
9
|
+
Add this to your `Gemfile`:
|
|
10
|
+
|
|
11
|
+
gem "capi"
|
|
12
|
+
|
|
13
|
+
## Capfile
|
|
14
|
+
|
|
15
|
+
require 'capi/unicorn'
|
|
16
|
+
|
|
17
|
+
## Using
|
|
18
|
+
|
|
19
|
+
For example.
|
|
20
|
+
Add this to you `config/deploy.rb` to restart unicorn after deploy:
|
|
21
|
+
|
|
22
|
+
after "deploy:restart", "unicorn:restart"
|
data/capi.gemspec
CHANGED
data/lib/capi/unicorn.rb
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
2
|
-
after "deploy:restart", "unicorn:restart"
|
|
3
2
|
namespace :unicorn do
|
|
4
3
|
desc 'unicorn start'
|
|
5
4
|
task :start do
|
|
@@ -8,7 +7,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
8
7
|
|
|
9
8
|
desc 'unicorn stop'
|
|
10
9
|
task :stop do
|
|
11
|
-
run "kill -
|
|
10
|
+
run "kill -QUIT `cat #{deploy_to}/shared/pids/unicorn.pid`"
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
desc 'unicorn restart'
|
data/lib/capi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,8 +9,19 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
13
|
-
dependencies:
|
|
12
|
+
date: 2012-04-03 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: capistrano
|
|
16
|
+
requirement: &17077860 !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: *17077860
|
|
14
25
|
description: capistrano tasks
|
|
15
26
|
email:
|
|
16
27
|
- mokevnin@gmail.com
|
|
@@ -20,7 +31,7 @@ extra_rdoc_files: []
|
|
|
20
31
|
files:
|
|
21
32
|
- .gitignore
|
|
22
33
|
- Gemfile
|
|
23
|
-
- README
|
|
34
|
+
- README.md
|
|
24
35
|
- Rakefile
|
|
25
36
|
- capi.gemspec
|
|
26
37
|
- lib/capi.rb
|
|
@@ -51,3 +62,4 @@ signing_key:
|
|
|
51
62
|
specification_version: 3
|
|
52
63
|
summary: capistrano tasks
|
|
53
64
|
test_files: []
|
|
65
|
+
has_rdoc:
|
data/README
DELETED
|
File without changes
|