capistrano-thin 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/README.md +21 -7
- data/capistrano-thin.gemspec +3 -3
- data/lib/capistrano/tasks/deploy.cap +10 -0
- data/lib/capistrano/tasks/thin.cap +5 -3
- data/lib/capistrano/thin.rb +2 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b84d3a3647bd9e7b0097cd0c117cad938fbc44a
|
4
|
+
data.tar.gz: d7dd6dc0d4778fa37b650cf7e1445f17c0272c2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e8d8b11ad735ffbe28aed7bdfe732f92dc0be4906831c3dfe8661126338f2bbf0b2cdf65f2ba2efa0b570cd0c0260e5c2c6a376f7ba5cd4400edd60fb7682a
|
7
|
+
data.tar.gz: 6480ba39f95db697a5f74c7719d8d2922114e80a8f5cf573d9470cd3036f4ae46d88558374a2fddf9ebe9b1436e750ac1df9fb9703b84eb166b04980c8c32c35
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -3,27 +3,35 @@
|
|
3
3
|
Simple Thin specific tasks for Capistrano 3.x, implements the following tasks:
|
4
4
|
|
5
5
|
```
|
6
|
+
thin:restart
|
7
|
+
thin:start
|
8
|
+
thin:stop
|
9
|
+
|
10
|
+
# DEPRECATED - will be removed later
|
6
11
|
deploy:restart
|
7
12
|
deploy:start
|
8
13
|
deploy:stop
|
9
14
|
```
|
10
15
|
|
11
|
-
|
16
|
+
## Configuration
|
17
|
+
|
18
|
+
A valid Thin config file is expected under
|
12
19
|
`config/thin/(production|staging|whatever).yml`.
|
20
|
+
but you can also specify custom config file using `set` e.g.
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
set :thin_config_path, -> { "#{shared_path}/config/thin.yml" }
|
24
|
+
```
|
13
25
|
|
14
26
|
## Installation
|
15
27
|
|
16
28
|
Add this line to your application's Gemfile:
|
17
29
|
|
18
30
|
```ruby
|
19
|
-
gem 'capistrano-thin', '~> 1.
|
31
|
+
gem 'capistrano-thin', '~> 1.2.0'
|
20
32
|
```
|
21
33
|
|
22
|
-
If you use RVM on the server
|
23
|
-
|
24
|
-
```ruby
|
25
|
-
gem 'capistrano-rvm'
|
26
|
-
```
|
34
|
+
If you use RVM on the server also add the `capistrano-rvm` gem.
|
27
35
|
|
28
36
|
And then execute:
|
29
37
|
|
@@ -37,6 +45,12 @@ Require in `Capfile` to load tasks:
|
|
37
45
|
require 'capistrano/thin'
|
38
46
|
```
|
39
47
|
|
48
|
+
And use tasks on `deploy.rb`, e.g.
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
after 'deploy:publishing', 'thin:restart'
|
52
|
+
```
|
53
|
+
|
40
54
|
## Contributing
|
41
55
|
|
42
56
|
1. Fork it
|
data/capistrano-thin.gemspec
CHANGED
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-thin"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.2.0"
|
8
8
|
spec.authors = ["Alessandro Lepore"]
|
9
9
|
spec.email = ["a.lepore@freegoweb.it"]
|
10
|
-
spec.summary = %q{Thin
|
11
|
-
spec.description = %q{Thin
|
10
|
+
spec.summary = %q{Thin tasks for Capistrano 3.x}
|
11
|
+
spec.description = %q{Thin tasks for Capistrano 3.x}
|
12
12
|
spec.homepage = "https://github.com/freego/capistrano-thin"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
@@ -1,11 +1,13 @@
|
|
1
|
-
namespace :
|
2
|
-
commands =
|
1
|
+
namespace :thin do
|
2
|
+
commands = [:start, :stop, :restart]
|
3
3
|
|
4
4
|
commands.each do |command|
|
5
|
+
desc "thin #{command}"
|
5
6
|
task command do
|
6
7
|
on roles(:app), in: :sequence, wait: 5 do
|
7
8
|
within current_path do
|
8
|
-
|
9
|
+
config_file = fetch(:thin_config_path, "config/thin/#{fetch(:stage)}.yml")
|
10
|
+
execute :bundle, "exec thin #{command} -C #{config_file}"
|
9
11
|
end
|
10
12
|
end
|
11
13
|
end
|
data/lib/capistrano/thin.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
load File.expand_path('../tasks/thin.cap', __FILE__)
|
1
|
+
load File.expand_path('../tasks/thin.cap', __FILE__)
|
2
|
+
load File.expand_path('../tasks/deploy.cap', __FILE__)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-thin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Lepore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: Thin
|
69
|
+
description: Thin tasks for Capistrano 3.x
|
70
70
|
email:
|
71
71
|
- a.lepore@freegoweb.it
|
72
72
|
executables: []
|
@@ -74,12 +74,14 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- CHANGELOG.md
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE.txt
|
79
80
|
- README.md
|
80
81
|
- Rakefile
|
81
82
|
- capistrano-thin.gemspec
|
82
83
|
- lib/capistrano-thin.rb
|
84
|
+
- lib/capistrano/tasks/deploy.cap
|
83
85
|
- lib/capistrano/tasks/thin.cap
|
84
86
|
- lib/capistrano/thin.rb
|
85
87
|
homepage: https://github.com/freego/capistrano-thin
|
@@ -105,5 +107,5 @@ rubyforge_project:
|
|
105
107
|
rubygems_version: 2.4.6
|
106
108
|
signing_key:
|
107
109
|
specification_version: 4
|
108
|
-
summary: Thin
|
110
|
+
summary: Thin tasks for Capistrano 3.x
|
109
111
|
test_files: []
|