capistrano-rbenv 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -3
- data/capistrano-rbenv.gemspec +1 -1
- data/lib/capistrano-rbenv/deploy.rb +3 -4
- data/lib/capistrano-rbenv/version.rb +2 -2
- metadata +2 -3
data/README.md
CHANGED
@@ -34,11 +34,10 @@ Following options are available to manage your rbenv.
|
|
34
34
|
* `:rbenv_path` - the path where `rbenv` will be installed. use `$HOME/.rbenv` by default.
|
35
35
|
* `:rbenv_plugins_options` - install options for rbenv plugins.
|
36
36
|
* `:rbenv_plugins` - rbenv plugins to install. install `ruby-build` by default.
|
37
|
-
* `:rbenv_repository`
|
38
|
-
* `:rbenv_ruby_dependencies`
|
37
|
+
* `:rbenv_repository` - repository URL of rbenv.
|
38
|
+
* `:rbenv_ruby_dependencies` - dependency packages.
|
39
39
|
* `:rbenv_ruby_version` - the ruby version to install. install `1.9.3-p194` by default.
|
40
40
|
* `:rbenv_use_bundler` - controls whether installing bundler or not. `true` by default.
|
41
|
-
* `:rbenv_use_plugins` - controls whether installing rbenv plugins or not. `true` by default.
|
42
41
|
|
43
42
|
## Contributing
|
44
43
|
|
data/capistrano-rbenv.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "capistrano-rbenv"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = Capistrano::
|
16
|
+
gem.version = Capistrano::RbEnv::VERSION
|
17
17
|
|
18
18
|
gem.add_dependency("capistrano")
|
19
19
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Capistrano
|
2
|
-
module
|
2
|
+
module RbEnv
|
3
3
|
def self.extended(configuration)
|
4
4
|
configuration.load {
|
5
5
|
namespace(:rbenv) {
|
@@ -16,7 +16,6 @@ module Capistrano
|
|
16
16
|
_cset(:rbenv_repository, 'git://github.com/sstephenson/rbenv.git')
|
17
17
|
_cset(:rbenv_branch, 'master')
|
18
18
|
|
19
|
-
_cset(:rbenv_use_plugins, true)
|
20
19
|
_cset(:rbenv_plugins, {
|
21
20
|
'ruby-build' => 'git://github.com/sstephenson/ruby-build.git',
|
22
21
|
})
|
@@ -73,7 +72,7 @@ module Capistrano
|
|
73
72
|
desc("Update rbenv installation.")
|
74
73
|
task(:update, :except => { :no_release => true }) {
|
75
74
|
_rbenv_sync(rbenv_repository, rbenv_path, rbenv_branch)
|
76
|
-
plugins.update
|
75
|
+
plugins.update
|
77
76
|
}
|
78
77
|
|
79
78
|
desc("Purge rbenv.")
|
@@ -131,7 +130,7 @@ module Capistrano
|
|
131
130
|
end
|
132
131
|
|
133
132
|
if Capistrano::Configuration.instance
|
134
|
-
Capistrano::Configuration.instance.extend(Capistrano::
|
133
|
+
Capistrano::Configuration.instance.extend(Capistrano::RbEnv)
|
135
134
|
end
|
136
135
|
|
137
136
|
# vim:set ft=ruby ts=2 sw=2 :
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rbenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -68,4 +68,3 @@ signing_key:
|
|
68
68
|
specification_version: 3
|
69
69
|
summary: a capistrano recipe to manage rubies with rbenv.
|
70
70
|
test_files: []
|
71
|
-
has_rdoc:
|