capistrano-rbenv-install 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/LICENSE.md +19 -0
- data/README.md +23 -0
- data/Rakefile +1 -0
- data/capistrano-rbenv-install.gemspec +29 -0
- data/lib/capistrano-rbenv-install.rb +0 -0
- data/lib/capistrano/rbenv_install.rb +1 -0
- data/lib/capistrano/rbenv_install/version.rb +5 -0
- data/lib/capistrano/tasks/rbenv_install.rake +57 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 477d02c69f8a561b6dbfddc756be0563d18e4abb
|
4
|
+
data.tar.gz: 4a9bc69e20fdf1c876a86abf8e74e8caffe77b82
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 90039fb826fcce0dbefc60d1e349a57757332632ac864bac9b51029e4047fe2586a9186898ad51f904f763d05bdeab1f67969bec8d89ab165c5597fba95002e6
|
7
|
+
data.tar.gz: 2697b4532a4ff979f236ab312e1e517304ff259e7823d8968db397102655c82069965a189d7dd7dfd98bb5e5962e8b3071b45c66540146070a8dce13643b1792
|
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (C) 2014 Bruno Sutic
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the "Software"),
|
5
|
+
to deal in the Software without restriction, including without limitation
|
6
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
7
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
8
|
+
Software is furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included
|
11
|
+
in all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
14
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
15
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
16
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
17
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
18
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
19
|
+
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Capistrano::Rbenv::Install
|
2
|
+
|
3
|
+
### About
|
4
|
+
|
5
|
+
### Installation
|
6
|
+
|
7
|
+
### Standard usage
|
8
|
+
|
9
|
+
### How it works
|
10
|
+
|
11
|
+
### Gotchas
|
12
|
+
|
13
|
+
### Debugging
|
14
|
+
|
15
|
+
### Configuration
|
16
|
+
|
17
|
+
### Contributing and bug reports
|
18
|
+
|
19
|
+
### Thanks
|
20
|
+
|
21
|
+
### License
|
22
|
+
|
23
|
+
[MIT](LICENSE.md)
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'capistrano/rbenv_install/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "capistrano-rbenv-install"
|
8
|
+
gem.version = Capistrano::RbenvInstall::VERSION
|
9
|
+
gem.authors = ["Bruno Sutic"]
|
10
|
+
gem.email = ["bruno.sutic@gmail.com"]
|
11
|
+
gem.description = <<-EOF.gsub(/^\s+/, '')
|
12
|
+
Capistrano plugin for lightweight rubies management with rbenv.
|
13
|
+
|
14
|
+
Works with Capistrano 3 (only!). For Capistrano 2 support see:
|
15
|
+
https://github.com/yyuu/capistrano-rbenv
|
16
|
+
EOF
|
17
|
+
gem.summary = "Capistrano plugin for lightweight rubies managment with rbenv."
|
18
|
+
gem.homepage = "https://github.com/bruno-/capistrano-rbenv-install"
|
19
|
+
|
20
|
+
gem.license = "MIT"
|
21
|
+
|
22
|
+
gem.files = `git ls-files`.split($/)
|
23
|
+
gem.require_paths = ["lib"]
|
24
|
+
|
25
|
+
gem.add_dependency 'capistrano', '>= 3.0'
|
26
|
+
gem.add_dependency 'capistrano-rbenv', '>= 2.0'
|
27
|
+
|
28
|
+
gem.add_development_dependency "rake"
|
29
|
+
end
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../tasks/rbenv_install.rake", __FILE__)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
namespace :load do
|
2
|
+
task :defaults do
|
3
|
+
# Heavily depends on 'capistrano-rbenv' variables:
|
4
|
+
# https://github.com/capistrano/rbenv/blob/master/lib/capistrano/tasks/rbenv.rake#L33-49
|
5
|
+
# set :rbenv_type # :user or :system
|
6
|
+
# set :rbenv_ruby, '2.0.0-p247' # ruby version
|
7
|
+
# set :rbenv_roles, :all # where rbenv should be installed
|
8
|
+
# set :rbenv_path, # ~/.rbenv or /usr/local/rbenv, depends on :rbenv_type
|
9
|
+
# set :rbenv_ruby_dir # "#{fetch(:rbenv_path)}/versions/#{fetch(:rbenv_ruby)}" }
|
10
|
+
|
11
|
+
set :rbenv_ruby_build_path, -> { "#{fetch(:rbenv_path)}/plugins/ruby-build" }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
namespace :rbenv do
|
16
|
+
desc 'Install rbenv'
|
17
|
+
task :install_rbenv do
|
18
|
+
on roles fetch(:rbenv_roles) do
|
19
|
+
next if test "[ -d #{fetch(:rbenv_path)} ]"
|
20
|
+
execute :git, "clone https://github.com/sstephenson/rbenv.git #{fetch(:rbenv_path)}"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc 'Install ruby build - rbenv plugin'
|
25
|
+
task :install_ruby_build do
|
26
|
+
on roles fetch(:rbenv_roles) do
|
27
|
+
next if test "[ -d #{fetch(:rbenv_ruby_build_path)} ]"
|
28
|
+
execute :git, "clone https://github.com/sstephenson/ruby-build.git #{fetch(:rbenv_ruby_build_path)}"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
desc 'Install ruby'
|
33
|
+
task :install_ruby do
|
34
|
+
on roles fetch(:rbenv_roles) do
|
35
|
+
next if test "[ -d #{fetch(:rbenv_ruby_dir)} ]"
|
36
|
+
execute "#{fetch(:rbenv_path)}/bin/rbenv install #{fetch(:rbenv_ruby)}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
desc 'Install bundler gem'
|
41
|
+
task :install_bundler do
|
42
|
+
on roles fetch(:rbenv_roles) do
|
43
|
+
next if test :gem, "query --quiet --installed --name-matches ^bundler$"
|
44
|
+
execute :gem, "install bundler --quiet --no-rdoc --no-ri"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
desc 'Install rbenv, ruby build and ruby version'
|
49
|
+
task :install do
|
50
|
+
invoke "rbenv:install_rbenv"
|
51
|
+
invoke "rbenv:install_ruby_build"
|
52
|
+
invoke "rbenv:install_ruby"
|
53
|
+
end
|
54
|
+
|
55
|
+
before 'rbenv:validate', 'rbenv:install'
|
56
|
+
after 'rbenv:map_bins', 'rbenv:install_bundler'
|
57
|
+
end
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-rbenv-install
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bruno Sutic
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-22 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-rbenv
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: |
|
56
|
+
Capistrano plugin for lightweight rubies management with rbenv.
|
57
|
+
Works with Capistrano 3 (only!). For Capistrano 2 support see:
|
58
|
+
https://github.com/yyuu/capistrano-rbenv
|
59
|
+
email:
|
60
|
+
- bruno.sutic@gmail.com
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE.md
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- capistrano-rbenv-install.gemspec
|
70
|
+
- lib/capistrano-rbenv-install.rb
|
71
|
+
- lib/capistrano/rbenv_install.rb
|
72
|
+
- lib/capistrano/rbenv_install/version.rb
|
73
|
+
- lib/capistrano/tasks/rbenv_install.rake
|
74
|
+
homepage: https://github.com/bruno-/capistrano-rbenv-install
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.1.5
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Capistrano plugin for lightweight rubies managment with rbenv.
|
98
|
+
test_files: []
|