capistrano-rbenv-support 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/LICENSE.txt +22 -0
- data/README.md +14 -0
- data/capistrano-rbenv-support.gemspec +20 -0
- data/lib/capistrano/rbenv.rb +26 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 493e05257483d36fd5d0fcad04f6ead006232712
|
4
|
+
data.tar.gz: 567812315c9cccbcc6c19152768f83c4a44935ea
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c2a026e59ef53133e80fc5cfe6c6ed8285fef036d6ba1d5b3128a1cb2b31c66b1ef54492eb49dd25ae669707b3c83bf7fb6c2901f5683832e7bcfaf41402b166
|
7
|
+
data.tar.gz: 55556971c0508872719ec3f5abf2029d9e4587f7057f0d049f9cbe69c81050ee47c8f829b8c6293602b5b3062aaa6f2616f7fdc2d4e1be4e2c691b6fddc7ed98
|
data/.gitignore
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Yaroslav Konoplov
|
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,14 @@
|
|
1
|
+
## rbenv support for Capistrano 3.x
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/capistrano-rbenv-support.svg)](https://badge.fury.io/rb/capistrano-rbenv-support)
|
4
|
+
|
5
|
+
## Installing gem
|
6
|
+
Add to your Gemfile:
|
7
|
+
```ruby
|
8
|
+
gem 'capistrano-rbenv-support', '~> 1.0', require: false
|
9
|
+
```
|
10
|
+
|
11
|
+
Require gem in your Capfile:
|
12
|
+
```ruby
|
13
|
+
require 'capistrano/rbenv'
|
14
|
+
```
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'capistrano-rbenv-support'
|
6
|
+
s.version = '1.0.0'
|
7
|
+
s.author = 'Yaroslav Konoplov'
|
8
|
+
s.email = 'eahome00@gmail.com'
|
9
|
+
s.summary = 'rbenv support for Capistrano 3.x'
|
10
|
+
s.description = 'rbenv support for Capistrano 3.x'
|
11
|
+
s.homepage = 'https://github.com/yivo/capistrano-rbenv-support'
|
12
|
+
s.license = 'MIT'
|
13
|
+
|
14
|
+
s.files = `git ls-files -z`.split("\x0")
|
15
|
+
s.test_files = `git ls-files -z -- {test,spec,features}/*`.split("\x0")
|
16
|
+
s.require_paths = ['lib']
|
17
|
+
|
18
|
+
s.add_dependency 'capistrano', '~> 3.0'
|
19
|
+
s.add_dependency 'capistrano-tweaks', '~> 1.0'
|
20
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'capistrano/tweaks'
|
2
|
+
|
3
|
+
namespace :load do
|
4
|
+
task :defaults do
|
5
|
+
set :rbenv_root, -> { expand_home_dir('~/.rbenv', user: fetch(:user)) }
|
6
|
+
set :rbenv_roles, :all
|
7
|
+
set :rbenv_map_bins, %w( bundle rake ruby rails )
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
namespace :rbenv do
|
12
|
+
task :map_bins do
|
13
|
+
rbenv_root = fetch(:rbenv_root)
|
14
|
+
rbenv_prefix = fetch(:rbenv_prefix, "#{rbenv_root}/bin/rbenv exec")
|
15
|
+
|
16
|
+
SSHKit.config.command_map[:rbenv] = "#{rbenv_root}/bin/rbenv"
|
17
|
+
fetch(:rbenv_map_bins).each do |command|
|
18
|
+
SSHKit.config.command_map.prefix[command.to_sym].unshift(rbenv_prefix)
|
19
|
+
SSHKit.config.command_map[:"#{command}_shim"] = File.join(rbenv_root, 'shims', command.to_s)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
Capistrano::DSL.stages.each do |stage|
|
25
|
+
after stage, 'rbenv:map_bins'
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-rbenv-support
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yaroslav Konoplov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: capistrano
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: capistrano-tweaks
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: rbenv support for Capistrano 3.x
|
42
|
+
email: eahome00@gmail.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- ".gitignore"
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.md
|
50
|
+
- capistrano-rbenv-support.gemspec
|
51
|
+
- lib/capistrano/rbenv.rb
|
52
|
+
homepage: https://github.com/yivo/capistrano-rbenv-support
|
53
|
+
licenses:
|
54
|
+
- MIT
|
55
|
+
metadata: {}
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options: []
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 2.6.8
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: rbenv support for Capistrano 3.x
|
76
|
+
test_files: []
|