capistrano-thin 1.1.1 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90c30e2ad9f08c16d5ecec9926c995a67c095c71
4
- data.tar.gz: b351230d2b9c7c4b4276f6984fc1ee4051b9675b
3
+ metadata.gz: 2b84d3a3647bd9e7b0097cd0c117cad938fbc44a
4
+ data.tar.gz: d7dd6dc0d4778fa37b650cf7e1445f17c0272c2e
5
5
  SHA512:
6
- metadata.gz: ab298a7e243de9bea89ade181b7fe5fbac3b0990912c6a3c11da11c1a5fd62316e2abaa3535b2ac90be80ae6a9b171067465f2c1f641ddebf62055ec7e863740
7
- data.tar.gz: d03eda07f1b4a985ff26a6adf9958c2f8ceb96bb1a26d47b38928b0706d9130be76dc0c7db1ec956c9ccc5bd025f5146a1cd34892ebc49d02fc95a719999a5c5
6
+ metadata.gz: f9e8d8b11ad735ffbe28aed7bdfe732f92dc0be4906831c3dfe8661126338f2bbf0b2cdf65f2ba2efa0b570cd0c0260e5c2c6a376f7ba5cd4400edd60fb7682a
7
+ data.tar.gz: 6480ba39f95db697a5f74c7719d8d2922114e80a8f5cf573d9470cd3036f4ae46d88558374a2fddf9ebe9b1436e750ac1df9fb9703b84eb166b04980c8c32c35
@@ -0,0 +1,9 @@
1
+ # 1.2.0
2
+ * Namespace change: deprecate `deploy:` in favour of `thin:`.
3
+ * Add `thin_config_path` setting.
4
+
5
+ # 1.1.0
6
+ * Remove RVM hook.
7
+
8
+ # 1.0.0
9
+ * Initial release.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Alessandro Lepore
1
+ Copyright (c) 2015 Alessandro Lepore
2
2
 
3
3
  MIT License
4
4
 
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
- Note: A valid Thin config file is expected under
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.1.0'
31
+ gem 'capistrano-thin', '~> 1.2.0'
20
32
  ```
21
33
 
22
- If you use RVM on the server you should also add:
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
@@ -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.1.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 support for Capistrano 3.x}
11
- spec.description = %q{Thin support for Capistrano 3.x}
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
 
@@ -0,0 +1,10 @@
1
+ namespace :deploy do
2
+ commands = %w(start stop restart)
3
+
4
+ commands.each do |command|
5
+ task command do
6
+ puts "DEPRECATED - Please use thin:#{command}"
7
+ invoke "thin:#{command}"
8
+ end
9
+ end
10
+ end
@@ -1,11 +1,13 @@
1
- namespace :deploy do
2
- commands = %w(start stop restart)
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
- execute :bundle, "exec thin #{command} -C config/thin/#{fetch(:stage)}.yml"
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
@@ -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.1.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-08-29 00:00:00.000000000 Z
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 support for Capistrano 3.x
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 support for Capistrano 3.x
110
+ summary: Thin tasks for Capistrano 3.x
109
111
  test_files: []