capistrano-rbenv-ruby193deps-centos5 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +40 -0
- data/Rakefile +1 -0
- data/capistrano-rbenv-ruby193deps-centos5.gemspec +21 -0
- data/lib/capistrano-rbenv-ruby193deps-centos5.rb +46 -0
- data/lib/capistrano-rbenv-ruby193deps-centos5/version.rb +9 -0
- metadata +71 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Takeshi KOMIYA
|
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,40 @@
|
|
1
|
+
# Capistrano::Rbenv::Ruby193deps::Centos5
|
2
|
+
|
3
|
+
Capistrano task to install build-dependencies of Ruby 1.9.3 for CentOS 5.x
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'capistrano-rbenv-ruby193deps-centos5'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install capistrano-rbenv-ruby193deps-centos5
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
load capistrano-rbenv-ruby193deps-centos5 in your config/deploy.rb:
|
22
|
+
|
23
|
+
require 'capistrano-rbenv-ruby193deps-centos5'
|
24
|
+
|
25
|
+
And then, capistrano-rbenv-ruby193deps-centos5 runs on deploy:setup task,
|
26
|
+
and install build-dependencies of ruby1.9.3 (only at CentOS 5.x hosts).
|
27
|
+
|
28
|
+
So, you can install ruby 1.9.3 with very simple configuration:
|
29
|
+
|
30
|
+
require 'capistrano-rbenv'
|
31
|
+
require 'capistrano-rbenv-ruby193deps-centos5'
|
32
|
+
set :rbenv_ruby_version, '1.9.3-p374'
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
1. Fork it
|
37
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
38
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
39
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
40
|
+
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
|
+
require 'capistrano-rbenv-ruby193deps-centos5/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "capistrano-rbenv-ruby193deps-centos5"
|
8
|
+
gem.version = Capistrano::Rbenv::Ruby193deps::Centos5::VERSION
|
9
|
+
gem.authors = ["Takeshi KOMIYA"]
|
10
|
+
gem.email = ["i.tkomiya@gmail.com"]
|
11
|
+
gem.description = %q{Capistrano task to install build-dependencies of Ruby 1.9.3 for CentOS 5.x}
|
12
|
+
gem.summary = %q{Capistrano task to install build-dependencies of Ruby 1.9.3 for CentOS 5.x}
|
13
|
+
gem.homepage = "https://github.com/tk0miya/capistrano-rbenv-ruby193deps-centos5"
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
|
20
|
+
gem.add_dependency 'capistrano-platform-recognizer'
|
21
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require "capistrano-platform-recognizer"
|
2
|
+
require "capistrano-rbenv-ruby193deps-centos5/version"
|
3
|
+
|
4
|
+
|
5
|
+
Capistrano::Configuration.instance.load do
|
6
|
+
namespace :rbenv do
|
7
|
+
namespace :ruby193deps do
|
8
|
+
namespace :centos5 do
|
9
|
+
task(:install_i386,
|
10
|
+
:only => {:distro => :centos5, :arch => :i386},
|
11
|
+
:except => { :no_release => true },
|
12
|
+
:on_no_matching_servers => :continue) do
|
13
|
+
install(:i386)
|
14
|
+
end
|
15
|
+
before 'rbenv:setup', 'rbenv:ruby193deps:centos5:install_i386'
|
16
|
+
|
17
|
+
task(:install_x86_64,
|
18
|
+
:only => {:distro => :centos5, :arch => :x86_64},
|
19
|
+
:except => { :no_release => true },
|
20
|
+
:on_no_matching_servers => :continue) do
|
21
|
+
install(:x86_64)
|
22
|
+
end
|
23
|
+
before 'rbenv:setup', 'rbenv:ruby193deps:centos5:install_x86_64'
|
24
|
+
|
25
|
+
def install(arch)
|
26
|
+
urls = %w(http://dl.fedoraproject.org/pub/epel/5/x86_64/perl-Error-0.17010-1.el5.noarch.rpm
|
27
|
+
http://dl.fedoraproject.org/pub/epel/5/x86_64/perl-Git-1.7.4.1-1.el5.x86_64.rpm
|
28
|
+
http://dl.fedoraproject.org/pub/epel/5/x86_64/git-1.7.4.1-1.el5.x86_64.rpm
|
29
|
+
http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/autoconf26x-2.63-4.ius.el5.noarch.rpm)
|
30
|
+
|
31
|
+
filenames = []
|
32
|
+
urls.each do |url|
|
33
|
+
url.gsub!('x86_64', arch.to_s)
|
34
|
+
filename = "/tmp/#{File.basename(url)}"
|
35
|
+
|
36
|
+
run "wget -O #{filename} #{url}"
|
37
|
+
filenames << filename
|
38
|
+
end
|
39
|
+
|
40
|
+
run "#{sudo} rpm -ivh #{filenames.join(" ")} || true"
|
41
|
+
run "rm #{filenames.join(" ")}"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-rbenv-ruby193deps-centos5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Takeshi KOMIYA
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: capistrano-platform-recognizer
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: Capistrano task to install build-dependencies of Ruby 1.9.3 for CentOS
|
31
|
+
5.x
|
32
|
+
email:
|
33
|
+
- i.tkomiya@gmail.com
|
34
|
+
executables: []
|
35
|
+
extensions: []
|
36
|
+
extra_rdoc_files: []
|
37
|
+
files:
|
38
|
+
- .gitignore
|
39
|
+
- Gemfile
|
40
|
+
- LICENSE.txt
|
41
|
+
- README.md
|
42
|
+
- Rakefile
|
43
|
+
- capistrano-rbenv-ruby193deps-centos5.gemspec
|
44
|
+
- lib/capistrano-rbenv-ruby193deps-centos5.rb
|
45
|
+
- lib/capistrano-rbenv-ruby193deps-centos5/version.rb
|
46
|
+
homepage: https://github.com/tk0miya/capistrano-rbenv-ruby193deps-centos5
|
47
|
+
licenses: []
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 1.8.24
|
67
|
+
signing_key:
|
68
|
+
specification_version: 3
|
69
|
+
summary: Capistrano task to install build-dependencies of Ruby 1.9.3 for CentOS 5.x
|
70
|
+
test_files: []
|
71
|
+
has_rdoc:
|