capistrano-chruby 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/README.md +31 -0
- data/Rakefile +1 -0
- data/capistrano-chruby.gemspec +21 -0
- data/lib/capistrano/chruby.rb +1 -0
- data/lib/capistrano/tasks/chruby.rake +30 -0
- data/lib/capistrano-chruby.rb +0 -0
- metadata +80 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ae79e19bf1d79aa5862c2c252c071cd53388e7ba
|
4
|
+
data.tar.gz: 8e988687a48361fed359d77ad8a616d2eaf26e10
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c0f68949c14e0b5ce63884a7981a2558f864a62c94f67616bc45130506156aee2b32397a35a731ed5c3ef41cdc3be858b577b7cd9a586682749830a5112b3713
|
7
|
+
data.tar.gz: 6c674f8a6cd00d64bdddf3fab5941e8773bc5adb888acbd6f640a89eca44381e95c62f2b025e4e3e8bfef7b7a51a0d5902e63613b88e7e4083aae722dc244d44
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Capistrano::chruby
|
2
|
+
|
3
|
+
## Installation
|
4
|
+
|
5
|
+
Add this line to your application's Gemfile:
|
6
|
+
|
7
|
+
gem 'capistrano', '~> 3.0'
|
8
|
+
gem 'capistrano-chruby', github: "capistrano/chruby"
|
9
|
+
|
10
|
+
And then execute:
|
11
|
+
|
12
|
+
$ bundle install
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
# Capfile
|
17
|
+
require 'capistrano/chruby'
|
18
|
+
|
19
|
+
|
20
|
+
# config/deploy.rb
|
21
|
+
set :chruby_ruby, 'ruby-2.0.0-p247'
|
22
|
+
|
23
|
+
If your `chruby-exec` is located in some custom path, you can tweak `chruby_exec` option to set it.
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: 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 |gem|
|
6
|
+
gem.name = "capistrano-chruby"
|
7
|
+
gem.version = '0.1.0'
|
8
|
+
gem.authors = ["Kir Shatrov"]
|
9
|
+
gem.email = ["shatrov@me.com"]
|
10
|
+
gem.description = %q{chruby integration for Capistrano}
|
11
|
+
gem.summary = %q{chruby integration for Capistrano}
|
12
|
+
gem.homepage = "https://github.com/kirs/chruby"
|
13
|
+
|
14
|
+
gem.files = `git ls-files`.split($/)
|
15
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
|
+
gem.require_paths = ["lib"]
|
17
|
+
|
18
|
+
gem.add_dependency 'capistrano', '~> 3.0'
|
19
|
+
gem.add_dependency 'sshkit', '~> 1.2.0'
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../tasks/chruby.rake", __FILE__)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
namespace :chruby do
|
2
|
+
task :validate do
|
3
|
+
on roles(:all) do
|
4
|
+
if fetch(:chruby_ruby).nil?
|
5
|
+
error "chruby: chruby_ruby is not set"
|
6
|
+
exit 1
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
task :map_bins do
|
12
|
+
chruby_prefix = "#{fetch(:chruby_exec)} #{fetch(:chruby_ruby)} --"
|
13
|
+
|
14
|
+
fetch(:chruby_map_bins).each do |command|
|
15
|
+
SSHKit.config.command_map.prefix[command.to_sym].unshift(chruby_prefix)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
Capistrano::DSL.stages.each do |stage|
|
21
|
+
after stage, 'chruby:validate'
|
22
|
+
after stage, 'chruby:map_bins'
|
23
|
+
end
|
24
|
+
|
25
|
+
namespace :load do
|
26
|
+
task :defaults do
|
27
|
+
set :chruby_map_bins, %w{rake gem bundle ruby}
|
28
|
+
set :chruby_exec, "/usr/local/bin/chruby-exec"
|
29
|
+
end
|
30
|
+
end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-chruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kir Shatrov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-23 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: sshkit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.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: 1.2.0
|
41
|
+
description: chruby integration for Capistrano
|
42
|
+
email:
|
43
|
+
- shatrov@me.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- Gemfile
|
50
|
+
- README.md
|
51
|
+
- Rakefile
|
52
|
+
- capistrano-chruby.gemspec
|
53
|
+
- lib/capistrano-chruby.rb
|
54
|
+
- lib/capistrano/chruby.rb
|
55
|
+
- lib/capistrano/tasks/chruby.rake
|
56
|
+
homepage: https://github.com/kirs/chruby
|
57
|
+
licenses: []
|
58
|
+
metadata: {}
|
59
|
+
post_install_message:
|
60
|
+
rdoc_options: []
|
61
|
+
require_paths:
|
62
|
+
- lib
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
requirements: []
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 2.0.3
|
76
|
+
signing_key:
|
77
|
+
specification_version: 4
|
78
|
+
summary: chruby integration for Capistrano
|
79
|
+
test_files: []
|
80
|
+
has_rdoc:
|