capistrano-bundler 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +8 -2
- data/capistrano-bundler.gemspec +3 -3
- data/lib/capistrano/tasks/bundler.cap +7 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fa261e6360e6bbd0fbe96e810df630b6c72b1c7
|
4
|
+
data.tar.gz: c56dccc1b5c6fda98f5e66730ed085205e5c645d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5f9d95f241b4f489b133cbd9f5d1345019224bf30af8fb8d16f6b0d1e8931580b987ebba19f25a4bb8bcc4c4ade4f28f89853f047e5f20b1f36a4774bb1602f
|
7
|
+
data.tar.gz: 3c14a38b4ff089ce707c6d6f94dbf304257f4f453b85ebc8798588ea14b0c3ad4117ffc0e23bcbe6633db686d57d097dd1acb6b5e845e13cc61dad5801a4211b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 1.1.3 (4 Aug 2014)
|
2
|
+
|
3
|
+
* Honor `:no_release` flag by using `release_roles` in Capistrano 3.1
|
4
|
+
* capistrano-bundler now requires Capistrano 3.1 or higher (~> 3.1)
|
5
|
+
* Added `:bundle_jobs` option for specifying number of parallel jobs
|
6
|
+
|
1
7
|
# 1.1.2 (8 Feb 2014)
|
2
8
|
|
3
9
|
* Added `bundle_env_variables` option for specifying environment variables that should be set when running `bundle`.
|
data/README.md
CHANGED
@@ -8,10 +8,10 @@ It also prefixes certain binaries to use `bundle exec`.
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
Add
|
11
|
+
Add these lines to your application's Gemfile:
|
12
12
|
|
13
13
|
gem 'capistrano', '~> 3.1'
|
14
|
-
gem 'capistrano-bundler', '~> 1.1.
|
14
|
+
gem 'capistrano-bundler', '~> 1.1.3'
|
15
15
|
|
16
16
|
And then execute:
|
17
17
|
|
@@ -39,6 +39,7 @@ set :bundle_bins, fetch(:bundle_bins, []).push %w(my_new_binary)
|
|
39
39
|
Configurable options:
|
40
40
|
|
41
41
|
set :bundle_roles, :all # this is default
|
42
|
+
set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) } # this is default
|
42
43
|
set :bundle_binstubs, -> { shared_path.join('bin') } # this is default
|
43
44
|
set :bundle_gemfile, -> { release_path.join('MyGemfile') } # default: nil
|
44
45
|
set :bundle_path, -> { shared_path.join('bundle') } # this is default
|
@@ -46,6 +47,11 @@ Configurable options:
|
|
46
47
|
set :bundle_flags, '--deployment --quiet' # this is default
|
47
48
|
set :bundle_env_variables, {} # this is default
|
48
49
|
|
50
|
+
You can parallelize the installation of gems with bundler's jobs feature.
|
51
|
+
Choose a number less or equal than the number of cores your server.
|
52
|
+
|
53
|
+
set :bundle_jobs, 4 #This is only available for bundler 1.4+
|
54
|
+
|
49
55
|
This would execute the following bundle command on all servers
|
50
56
|
(actual paths depend on the real deploy directory):
|
51
57
|
|
data/capistrano-bundler.gemspec
CHANGED
@@ -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-bundler'
|
7
|
-
spec.version = '1.1.
|
7
|
+
spec.version = '1.1.3'
|
8
8
|
spec.authors = ['Tom Clements', 'Lee Hambley', 'Kir Shatrov']
|
9
9
|
spec.email = ['seenmyfate@gmail.com', 'lee.hambley@gmail.com', 'shatrov@me.com']
|
10
10
|
spec.description = %q{Bundler support for Capistrano 3.x}
|
@@ -17,9 +17,9 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'capistrano', '~> 3.
|
20
|
+
spec.add_dependency 'capistrano', '~> 3.1'
|
21
21
|
spec.add_dependency 'sshkit', '~> 1.2'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
|
-
spec.add_development_dependency 'rake'
|
24
|
+
spec.add_development_dependency 'rake', '~> 0'
|
25
25
|
end
|
@@ -5,19 +5,23 @@ namespace :bundler do
|
|
5
5
|
test group will not be installed. The install command is executed \
|
6
6
|
with the --deployment and --quiet flags.
|
7
7
|
|
8
|
+
By default, bundler will not be run on servers with no_release: true.
|
9
|
+
|
8
10
|
You can override any of these defaults by setting the variables shown below.
|
9
11
|
|
10
12
|
set :bundle_roles, :all
|
11
13
|
|
14
|
+
set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) }
|
12
15
|
set :bundle_binstubs, -> { shared_path.join('bin') }
|
13
16
|
set :bundle_gemfile, -> { release_path.join('Gemfile') }
|
14
17
|
set :bundle_path, -> { shared_path.join('bundle') }
|
15
18
|
set :bundle_without, %w{development test}.join(' ')
|
16
19
|
set :bundle_flags, '--deployment --quiet'
|
20
|
+
set :bundle_jobs, nil
|
17
21
|
set :bundle_env_variables, {}
|
18
22
|
DESC
|
19
23
|
task :install do
|
20
|
-
on
|
24
|
+
on fetch(:bundle_servers) do
|
21
25
|
within release_path do
|
22
26
|
with fetch(:bundle_env_variables, {}) do
|
23
27
|
options = ["install"]
|
@@ -25,6 +29,7 @@ namespace :bundler do
|
|
25
29
|
options << "--gemfile #{fetch(:bundle_gemfile)}" if fetch(:bundle_gemfile)
|
26
30
|
options << "--path #{fetch(:bundle_path)}" if fetch(:bundle_path)
|
27
31
|
options << "--without #{fetch(:bundle_without)}" if fetch(:bundle_without)
|
32
|
+
options << "--jobs #{fetch(:bundle_jobs)}" if fetch(:bundle_jobs)
|
28
33
|
options << "#{fetch(:bundle_flags)}" if fetch(:bundle_flags)
|
29
34
|
|
30
35
|
execute :bundle, options
|
@@ -57,6 +62,7 @@ namespace :load do
|
|
57
62
|
set :bundle_bins, %w{gem rake rails}
|
58
63
|
|
59
64
|
set :bundle_roles, :all
|
65
|
+
set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) }
|
60
66
|
set :bundle_binstubs, -> { shared_path.join('bin') }
|
61
67
|
set :bundle_path, -> { shared_path.join('bundle') }
|
62
68
|
set :bundle_without, %w{development test}.join(' ')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Clements
|
@@ -10,62 +10,62 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
21
|
+
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '3.
|
28
|
+
version: '3.1'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: sshkit
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '1.2'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '1.2'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: bundler
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.3'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ~>
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '1.3'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rake
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
description: Bundler support for Capistrano 3.x
|
@@ -77,7 +77,7 @@ executables: []
|
|
77
77
|
extensions: []
|
78
78
|
extra_rdoc_files: []
|
79
79
|
files:
|
80
|
-
- .gitignore
|
80
|
+
- ".gitignore"
|
81
81
|
- CHANGELOG.md
|
82
82
|
- Gemfile
|
83
83
|
- LICENSE
|
@@ -97,12 +97,12 @@ require_paths:
|
|
97
97
|
- lib
|
98
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- -
|
105
|
+
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|