capistrano-rbenv-install 1.0.0 → 1.1.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 +4 -4
- data/CHANGELOG.md +11 -1
- data/README.md +2 -11
- data/capistrano-rbenv-install.gemspec +1 -1
- data/lib/capistrano/dsl/rbenv_install.rb +23 -0
- data/lib/capistrano/rbenv_install/version.rb +1 -1
- data/lib/capistrano/tasks/rbenv_install.rake +18 -19
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4376d1f69aaf179537baaa44d45a7fd433ddac8
|
4
|
+
data.tar.gz: ffdea53b5d9d4c1133a3a32864f331466d28340f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0ae27eb2180c370bf89719c6370c24507d603eca9b60817d325c4e5b3fb2880cde89afbea594939b026670736ab3686304a6c69ab57469bef8cca7e2c89546
|
7
|
+
data.tar.gz: 3a995a8d4e7ff503d6b406ada4cb0852a16fcd1571962df2c6b1494730fc6e71d9d0b64b1fb9f2a050f2f8c6ccf52622b55f84c31f6fb803d2b84a3ace3804fb
|
data/CHANGELOG.md
CHANGED
@@ -1,2 +1,12 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
### master
|
4
|
+
|
5
|
+
### v1.1.0, 2014-11-17
|
6
|
+
- extract paths and urls to a separate module
|
7
|
+
- update gem homepage
|
8
|
+
- fix a bug where bundler gem installation fails because `bundler:map_bins` task
|
9
|
+
is executed earlier.
|
10
|
+
|
11
|
+
### v1.0.0, 2014-03-29
|
2
12
|
- @bruno- all the v1.0.0 features
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Works with Capistrano 3 (only). For Capistrano 2 support check
|
|
10
10
|
|
11
11
|
Install by adding the following to the `Gemfile`:
|
12
12
|
|
13
|
-
gem 'capistrano', '~> 3.1'
|
13
|
+
gem 'capistrano', '~> 3.2.1'
|
14
14
|
gem 'capistrano-rbenv', '~> 2.0' # required
|
15
15
|
gem 'capistrano-rbenv-install'
|
16
16
|
|
@@ -94,16 +94,7 @@ supported.
|
|
94
94
|
|
95
95
|
### More Capistrano automation?
|
96
96
|
|
97
|
-
|
98
|
-
these zero-configuration, plug-n-play plugins:
|
99
|
-
|
100
|
-
- [capistrano-postgresql](https://github.com/bruno-/capistrano-postgresql)<br/>
|
101
|
-
plugin that automates postgresql configuration and setup
|
102
|
-
- [capistrano-unicorn-nginx](https://github.com/bruno-/capistrano-unicorn-nginx)<br/>
|
103
|
-
no-configuration unicorn and nginx setup with sensible defaults
|
104
|
-
- [capistrano-safe-deploy-to](https://github.com/bruno-/capistrano-safe-deploy-to)<br/>
|
105
|
-
if you're annoyed that Capistrano does **not** create a deployment path for the
|
106
|
-
app on the server (default `/var/www/myapp`), this is what you need!
|
97
|
+
Check out [capistrano-plugins](https://github.com/capistrano-plugins) github org.
|
107
98
|
|
108
99
|
### Thanks
|
109
100
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
https://github.com/yyuu/capistrano-rbenv
|
16
16
|
EOF
|
17
17
|
gem.summary = "Capistrano plugin for lightweight rubies managment with rbenv."
|
18
|
-
gem.homepage = "https://github.com/
|
18
|
+
gem.homepage = "https://github.com/capistrano-plugins/capistrano-rbenv-install"
|
19
19
|
|
20
20
|
gem.license = "MIT"
|
21
21
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Capistrano
|
2
|
+
module DSL
|
3
|
+
module RbenvInstall
|
4
|
+
|
5
|
+
def rbenv_ruby_build_path
|
6
|
+
"#{fetch(:rbenv_path)}/plugins/ruby-build"
|
7
|
+
end
|
8
|
+
|
9
|
+
def rbenv_bin_executable_path
|
10
|
+
"#{fetch(:rbenv_path)}/bin/rbenv"
|
11
|
+
end
|
12
|
+
|
13
|
+
def rbenv_repo_url
|
14
|
+
'https://github.com/sstephenson/rbenv.git'
|
15
|
+
end
|
16
|
+
|
17
|
+
def ruby_build_repo_url
|
18
|
+
'https://github.com/sstephenson/ruby-build.git'
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -1,31 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
1
|
+
require 'capistrano/dsl/rbenv_install'
|
2
|
+
|
3
|
+
include Capistrano::DSL::RbenvInstall
|
4
|
+
|
5
|
+
# Heavily depends on 'capistrano-rbenv' variables:
|
6
|
+
# https://github.com/capistrano/rbenv/blob/master/lib/capistrano/tasks/rbenv.rake#L33-49
|
7
|
+
# set :rbenv_type # :user or :system
|
8
|
+
# set :rbenv_ruby, '2.0.0-p247' # ruby version
|
9
|
+
# set :rbenv_roles, :all # where rbenv should be installed
|
10
|
+
# set :rbenv_path, # ~/.rbenv or /usr/local/rbenv, depends on :rbenv_type
|
11
|
+
# set :rbenv_ruby_dir # "#{fetch(:rbenv_path)}/versions/#{fetch(:rbenv_ruby)}" }
|
14
12
|
|
15
13
|
namespace :rbenv do
|
16
14
|
desc 'Install rbenv'
|
17
15
|
task :install_rbenv do
|
18
16
|
on roles fetch(:rbenv_roles) do
|
19
17
|
next if test "[ -d #{fetch(:rbenv_path)} ]"
|
20
|
-
execute :git, :clone,
|
18
|
+
execute :git, :clone, rbenv_repo_url, fetch(:rbenv_path)
|
21
19
|
end
|
22
20
|
end
|
23
21
|
|
24
22
|
desc 'Install ruby build - rbenv plugin'
|
25
23
|
task :install_ruby_build do
|
26
24
|
on roles fetch(:rbenv_roles) do
|
27
|
-
next if test "[ -d #{
|
28
|
-
execute :git, :clone,
|
25
|
+
next if test "[ -d #{rbenv_ruby_build_path} ]"
|
26
|
+
execute :git, :clone, ruby_build_repo_url, rbenv_ruby_build_path
|
29
27
|
end
|
30
28
|
end
|
31
29
|
|
@@ -33,12 +31,12 @@ namespace :rbenv do
|
|
33
31
|
task :install_ruby do
|
34
32
|
on roles fetch(:rbenv_roles) do
|
35
33
|
next if test "[ -d #{fetch(:rbenv_ruby_dir)} ]"
|
36
|
-
execute
|
34
|
+
execute rbenv_bin_executable_path, :install, fetch(:rbenv_ruby)
|
37
35
|
end
|
38
36
|
end
|
39
37
|
|
40
38
|
desc 'Install bundler gem'
|
41
|
-
task :
|
39
|
+
task install_bundler: ['rbenv:map_bins'] do
|
42
40
|
on roles fetch(:rbenv_roles) do
|
43
41
|
next if test :gem, :query, '--quiet --installed --name-matches ^bundler$'
|
44
42
|
execute :gem, :install, :bundler, '--quiet --no-rdoc --no-ri'
|
@@ -50,8 +48,9 @@ namespace :rbenv do
|
|
50
48
|
invoke 'rbenv:install_rbenv'
|
51
49
|
invoke 'rbenv:install_ruby_build'
|
52
50
|
invoke 'rbenv:install_ruby'
|
51
|
+
invoke 'rbenv:install_bundler'
|
53
52
|
end
|
54
53
|
|
55
54
|
before 'rbenv:validate', 'rbenv:install'
|
56
|
-
|
55
|
+
before 'bundler:map_bins', 'rbenv:install' if Rake::Task.task_defined?('bundler:map_bins')
|
57
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rbenv-install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Sutic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -69,10 +69,11 @@ files:
|
|
69
69
|
- Rakefile
|
70
70
|
- capistrano-rbenv-install.gemspec
|
71
71
|
- lib/capistrano-rbenv-install.rb
|
72
|
+
- lib/capistrano/dsl/rbenv_install.rb
|
72
73
|
- lib/capistrano/rbenv_install.rb
|
73
74
|
- lib/capistrano/rbenv_install/version.rb
|
74
75
|
- lib/capistrano/tasks/rbenv_install.rake
|
75
|
-
homepage: https://github.com/
|
76
|
+
homepage: https://github.com/capistrano-plugins/capistrano-rbenv-install
|
76
77
|
licenses:
|
77
78
|
- MIT
|
78
79
|
metadata: {}
|
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
95
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.2.0
|
96
97
|
signing_key:
|
97
98
|
specification_version: 4
|
98
99
|
summary: Capistrano plugin for lightweight rubies managment with rbenv.
|