capistrano-bundler 1.0.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 +7 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/LICENSE.txt +22 -0
- data/README.md +44 -0
- data/Rakefile +1 -0
- data/capistrano-bundler.gemspec +24 -0
- data/lib/capistrano-bundler.rb +0 -0
- data/lib/capistrano/bundler.rb +1 -0
- data/lib/capistrano/tasks/bundler.cap +41 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2729cf15cd5310fd2f14bc2adc5a7b043f9eafc8
|
4
|
+
data.tar.gz: 05b8740a22f69d24f4d3d3862b4ce27f8f0a5d6e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8048b0ddf961cf96ea18e994c75d01ef1871db408743ae0ea178384a01997badd192bec842ffd33687f6465294d2c784f9aee2999a43aba6ccd5b6172204846f
|
7
|
+
data.tar.gz: 75c68648599e0fba19010c26880aa1133b75d9efab6d7abbd16fd0d1dcaebfdc2e73f225659ddbfc667d7c9c5e61ecf3aa52f4befa8dd76f2ae17fb42897e222
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Capistrano, your one stop deployment shop.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 seenmyfate
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# Capistrano::Bundler
|
2
|
+
|
3
|
+
Bundler for support for Capistrano 3.x
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'capistrano', '~> 3.0.0'
|
10
|
+
gem 'capistrano-bundler'
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
$ bundle
|
15
|
+
|
16
|
+
Or install it yourself as:
|
17
|
+
|
18
|
+
$ gem install capistrano-bundler
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
Require in `Capfile` to use the default task:
|
23
|
+
|
24
|
+
require 'capistrano/bundler'
|
25
|
+
|
26
|
+
The task will run before `deploy:updated` as part of Capistrano's default deploy,
|
27
|
+
or can be run in isolation with `cap production bundler:install`
|
28
|
+
|
29
|
+
Configurable options, shown here with defaults:
|
30
|
+
|
31
|
+
set :bundle_gemfile, -> { release_path.join('Gemfile') }
|
32
|
+
set :bundle_dir, -> { shared_path.join('bundle') }
|
33
|
+
set :bundle_flags, '--deployment --quiet'
|
34
|
+
set :bundle_without, %w{development test}.join(' ')
|
35
|
+
set :bundle_binstubs, -> { shared_path.join('bin') }
|
36
|
+
set :bundle_roles, :all
|
37
|
+
|
38
|
+
## Contributing
|
39
|
+
|
40
|
+
1. Fork it
|
41
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
42
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
43
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
44
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'capistrano-bundler'
|
7
|
+
spec.version = '1.0.0'
|
8
|
+
spec.authors = ['Tom Clements', 'Lee Hambley']
|
9
|
+
spec.email = ['seenmyfate@gmail.com', 'lee.hambley@gmail.com']
|
10
|
+
spec.description = %q{Bundler support for Capistrano 3.x}
|
11
|
+
spec.summary = %q{Bundler support for Capistrano 3.x}
|
12
|
+
spec.homepage = 'https://github.com/capistrano/bundler'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.add_dependency 'capistrano', '>= 3.0.0.pre'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake'
|
24
|
+
end
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/bundler.cap', __FILE__)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
namespace :bundler do
|
2
|
+
desc <<-DESC
|
3
|
+
Install the current Bundler environment. By default, gems will be \
|
4
|
+
installed to the shared/bundle path. Gems in the development and \
|
5
|
+
test group will not be installed. The install command is executed \
|
6
|
+
with the --deployment and --quiet flags.
|
7
|
+
|
8
|
+
You can override any of these defaults by setting the variables shown below.
|
9
|
+
|
10
|
+
set :bundle_gemfile, -> { release_path.join('Gemfile') }
|
11
|
+
set :bundle_dir, -> { shared_path.join('bundle') }
|
12
|
+
set :bundle_flags, '--deployment --quiet'
|
13
|
+
set :bundle_without, %w{development test}.join(' ')
|
14
|
+
set :bundle_binstubs, -> { shared_path.join('bin') }
|
15
|
+
set :bundle_roles, :all
|
16
|
+
DESC
|
17
|
+
task :install do
|
18
|
+
on roles fetch(:bundle_roles) do
|
19
|
+
within release_path do
|
20
|
+
execute :bundle, "--gemfile #{fetch(:bundle_gemfile)}",
|
21
|
+
"--path #{fetch(:bundle_dir)}",
|
22
|
+
fetch(:bundle_flags),
|
23
|
+
"--binstubs #{fetch(:bundle_binstubs)}",
|
24
|
+
"--without #{fetch(:bundle_without)}"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
before 'deploy:updated', 'bundler:install'
|
30
|
+
end
|
31
|
+
|
32
|
+
namespace :load do
|
33
|
+
task :defaults do
|
34
|
+
set :bundle_gemfile, -> { release_path.join('Gemfile') }
|
35
|
+
set :bundle_dir, -> { shared_path.join('bundle') }
|
36
|
+
set :bundle_flags, '--deployment --quiet'
|
37
|
+
set :bundle_without, %w{development test}.join(' ')
|
38
|
+
set :bundle_binstubs, -> { shared_path.join('bin') }
|
39
|
+
set :bundle_roles, :all
|
40
|
+
end
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-bundler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tom Clements
|
8
|
+
- Lee Hambley
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: capistrano
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 3.0.0.pre
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 3.0.0.pre
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.3'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.3'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
description: Bundler support for Capistrano 3.x
|
57
|
+
email:
|
58
|
+
- seenmyfate@gmail.com
|
59
|
+
- lee.hambley@gmail.com
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE
|
66
|
+
- LICENSE.txt
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- capistrano-bundler.gemspec
|
70
|
+
- lib/capistrano-bundler.rb
|
71
|
+
- lib/capistrano/bundler.rb
|
72
|
+
- lib/capistrano/tasks/bundler.cap
|
73
|
+
homepage: https://github.com/capistrano/bundler
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata: {}
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.0.3
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: Bundler support for Capistrano 3.x
|
97
|
+
test_files: []
|