capistrano-thin 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 102e38a77a27a880b1c6ec5a3f94656064a4c561
4
- data.tar.gz: 70c7c7110645748eea0b2923e4b3373b0a28e31b
3
+ metadata.gz: 260dc2501ae158e6f23b2f035659480aabc07e8b
4
+ data.tar.gz: cddffc08de6535b12f0965421584f88afa93d85c
5
5
  SHA512:
6
- metadata.gz: ce4b0ad74832ac5e6f508c702c783110537ceaa813dd1a468b6650470628ca00a087841c5cd9b5e2ebb42b91512760ecc7b4eef5950407815ff4e11b9b0c60a3
7
- data.tar.gz: 2d946dfb3c55970b1611155605e7a38e69780e830cd3a3f9b828c86153eaf2e84cb6619a0372c576d470dacb339f56605af00077601910046b299c6c66094a05
6
+ metadata.gz: a2355fe1f58a0b0cc0babc364139d48a5a59b22b14ea3927ed7fbafce6b095c833944ffde5087e43f12ad7d1c1c6fe4eb1312727d0c82bb2afdd3970d229f103
7
+ data.tar.gz: 7d78a2c4e339b37ce544c4241d6ef49060ee2153bec9a2b35ce8cf0ba6b1886a3d2166c33acaaffa294f6f34933654a851024711e8771656b215a5131da37415
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 2.0.1
2
+ * Configurable roles.
3
+
1
4
  # 2.0.0
2
5
  * Remove deprecated `deploy:` tasks.
3
6
 
data/README.md CHANGED
@@ -18,6 +18,12 @@ but you can also specify custom config file using `set` e.g.
18
18
  set :thin_config_path, -> { "#{shared_path}/config/thin.yml" }
19
19
  ```
20
20
 
21
+ By default, thin will be executed with :app role. But you can assign it to a different role:
22
+
23
+ ```ruby
24
+ set :thin_roles, [:my_role]
25
+ ```
26
+
21
27
  ## Installation
22
28
 
23
29
  Add this line to your application's Gemfile:
@@ -4,7 +4,7 @@ $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 = "2.0.0"
7
+ spec.version = "2.0.1"
8
8
  spec.authors = ["Alessandro Lepore"]
9
9
  spec.email = ["a.lepore@freegoweb.it"]
10
10
  spec.summary = %q{Thin tasks for Capistrano 3.x}
@@ -4,7 +4,7 @@ namespace :thin do
4
4
  commands.each do |command|
5
5
  desc "thin #{command}"
6
6
  task command do
7
- on roles(:app), in: :sequence, wait: 5 do
7
+ on roles(fetch(:thin_roles, :app)), in: :sequence, wait: 5 do
8
8
  within current_path do
9
9
  config_file = fetch(:thin_config_path, "config/thin/#{fetch(:stage)}.yml")
10
10
  execute :bundle, "exec thin #{command} -C #{config_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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Lepore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano