capistrano-jbundler 0.0.1
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/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +42 -0
- data/Rakefile +2 -0
- data/capistrano-jbundler.gemspec +27 -0
- data/lib/capistrano/jbundler.rb +1 -0
- data/lib/capistrano/jbundler/tasks/jbundler.cap +55 -0
- data/lib/capistrano/jbundler/version.rb +5 -0
- metadata +123 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c4d3135608113b3a6664eb737eafbb781662805a
|
4
|
+
data.tar.gz: be8843706c14dd016a36e88098ef1ef8708c07a8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0a9846625013ca48f0e6b60dfa6568c5f9d453d481ca7570b4791974035cc27dcbe9003cc56a6e699f7bdaf82cc6dfcef457b43ad834f02a54f02e9461473278
|
7
|
+
data.tar.gz: 096ff5ee74e8a1ba386820bdeb85a8d798b91aef83cef512819e9ef9f4911e4c3f238262d001579ce03a66112d61fe7b69557832f068e7c91fa31b8871b0172a
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Chris Heald
|
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,42 @@
|
|
1
|
+
# capistrano/jbundler
|
2
|
+
|
3
|
+
capistrano-jbundler is a small Capistrano 3 task which allows you to use jbundler to automatically
|
4
|
+
install jar dependencies declared in your Jarfile during deploys.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add to the *top* of your gemfile:
|
9
|
+
|
10
|
+
gem 'jbundler'
|
11
|
+
|
12
|
+
and then in your :development group, add:
|
13
|
+
|
14
|
+
gem 'capistrano-jbundler'
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
In your `Capfile`:
|
21
|
+
|
22
|
+
require 'capistrano/jbundler'
|
23
|
+
|
24
|
+
And finally, in your JRuby application:
|
25
|
+
|
26
|
+
JBUNDLER_CLASSPATH.each {|c| require c }
|
27
|
+
|
28
|
+
This will expose all Jarfile packages to your JRuby app.
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
jbundler is automatically run after bundler. This causes it to install any dependent jars declared
|
33
|
+
in your Jarfile. It doesn't replace bundler due to jar-dependency version conflicts under recent
|
34
|
+
(Oct 2014) JRuby builds.
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
1. Fork it ( https://github.com/[my-github-username]/capistrano-jbundler/fork )
|
39
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
40
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
41
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
42
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
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-jbundler'
|
7
|
+
spec.version = '0.0.1'
|
8
|
+
spec.authors = ['Chris Heald']
|
9
|
+
spec.email = ['cheald@gmail.com']
|
10
|
+
spec.description = %q{JBundler support for Capistrano 3.x}
|
11
|
+
spec.summary = %q{JBundler support for Capistrano 3.x}
|
12
|
+
spec.homepage = 'https://github.com/cheald/capistrano-jbundler'
|
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.1'
|
21
|
+
spec.add_dependency 'sshkit', '~> 1.2'
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
|
+
spec.add_development_dependency 'jbundler', '~> 0.6'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
end
|
27
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../jbundler/tasks/jbundler.cap', __FILE__)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
set :rvm_map_bins, fetch(:rvm_map_bins, []).push("jbundle")
|
2
|
+
set :bundle_bins, fetch(:bundle_bins, []).push("jbundle")
|
3
|
+
|
4
|
+
namespace :jbundler do
|
5
|
+
desc <<-DESC
|
6
|
+
Install the current JBundler environment. The standard Bundler flags are respected. Additionally,
|
7
|
+
there are settings native to JBundler (Jarfile location, .jbundler file location, etc) which you may
|
8
|
+
want to set. You can override any of these defaults by setting the variables shown below.
|
9
|
+
|
10
|
+
set :jbundler_jarfile, -> { release_path.join('Jarfile') }
|
11
|
+
set :jbundle_classpath, -> { release_path.join(".jbundler/classpath.rb") }
|
12
|
+
set :jbundle_skip, nil
|
13
|
+
set :jbundle_verbose, nil
|
14
|
+
set :jbundle_local_repository, nil
|
15
|
+
set :jbundle_settings, nil
|
16
|
+
set :jbundle_offline, nil
|
17
|
+
set :jbundle_proxy, nil
|
18
|
+
set :jbundle_mirror, nil
|
19
|
+
set :jbundle_work_dir, nil
|
20
|
+
set :jbundle_vendor_dir, nil
|
21
|
+
DESC
|
22
|
+
|
23
|
+
task :install do
|
24
|
+
on fetch(:bundle_servers) do
|
25
|
+
gemfile = fetch(:bundle_gemfile, nil)
|
26
|
+
env_opts = {
|
27
|
+
"BUNDLE_GEMFILE" => gemfile,
|
28
|
+
"JBUNDLE_JARFILE" => fetch(:jbundler_jarfile, release_path.join('Jarfile')),
|
29
|
+
"JBUNDLE_CLASSPATH_FILE" => fetch(:jbundle_classpath, release_path.join(".jbundler/classpath.rb")),
|
30
|
+
"JBUNDLE_SKIP" => fetch(:jbundle_skip, nil),
|
31
|
+
"JBUNDLE_VERBOSE" => fetch(:jbundle_verbose, nil),
|
32
|
+
"JBUNDLE_LOCAL_REPOSITORY" => fetch(:jbundle_local_repository, nil),
|
33
|
+
"JBUNDLE_SETTINGS" => fetch(:jbundle_settings, nil),
|
34
|
+
"JBUNDLE_OFFLINE" => fetch(:jbundle_offline, nil),
|
35
|
+
"JBUNDLE_PROXY" => fetch(:jbundle_proxy, nil),
|
36
|
+
"JBUNDLE_MIRROR" => fetch(:jbundle_mirror, nil),
|
37
|
+
"JBUNDLE_WORK_DIR" => fetch(:jbundle_work_dir, nil),
|
38
|
+
"JBUNDLE_VENDOR_DIR" => fetch(:jbundle_vendor_dir, nil)
|
39
|
+
}
|
40
|
+
|
41
|
+
with(env_opts.select { |_, value| !value.nil? }) do
|
42
|
+
options = ["install"]
|
43
|
+
options << "--binstubs #{fetch(:bundle_binstubs)}" if fetch(:bundle_binstubs)
|
44
|
+
options << "--gemfile #{gemfile}" if gemfile
|
45
|
+
options << "--path #{fetch(:bundle_path)}" if fetch(:bundle_path)
|
46
|
+
options << "--without #{fetch(:bundle_without)}" if fetch(:bundle_without)
|
47
|
+
options << "--jobs #{fetch(:bundle_jobs)}" if fetch(:bundle_jobs)
|
48
|
+
options << "#{fetch(:bundle_flags)}" if fetch(:bundle_flags)
|
49
|
+
execute :jbundle, options
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
after "bundler:install", "jbundler:install"
|
55
|
+
end
|
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-jbundler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chris Heald
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: capistrano
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '3.1'
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sshkit
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.2'
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '1.2'
|
39
|
+
prerelease: false
|
40
|
+
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.3'
|
53
|
+
prerelease: false
|
54
|
+
type: :development
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jbundler
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.6'
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.6'
|
67
|
+
prerelease: false
|
68
|
+
type: :development
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
prerelease: false
|
82
|
+
type: :development
|
83
|
+
description: JBundler support for Capistrano 3.x
|
84
|
+
email:
|
85
|
+
- cheald@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- Gemfile
|
92
|
+
- LICENSE.txt
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- capistrano-jbundler.gemspec
|
96
|
+
- lib/capistrano/jbundler.rb
|
97
|
+
- lib/capistrano/jbundler/tasks/jbundler.cap
|
98
|
+
- lib/capistrano/jbundler/version.rb
|
99
|
+
homepage: https://github.com/cheald/capistrano-jbundler
|
100
|
+
licenses:
|
101
|
+
- MIT
|
102
|
+
metadata: {}
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
requirements: []
|
118
|
+
rubyforge_project:
|
119
|
+
rubygems_version: 2.1.9
|
120
|
+
signing_key:
|
121
|
+
specification_version: 4
|
122
|
+
summary: JBundler support for Capistrano 3.x
|
123
|
+
test_files: []
|