lib/rconf/configurators/ruby_configurator.rb in rconf-0.8.10 vs lib/rconf/configurators/ruby_configurator.rb in rconf-0.8.11
- old
+ new
@@ -171,22 +171,22 @@
# ruby(String):: Ruby version compatible with rvm
#
# === Return
# true:: Always return true
def install_ruby(ruby)
- Platform.dispatch(ruby) { :install_ruby_prerequesites }
+ Platform.dispatch(ruby) { :install_ruby_prerequisites }
report_check("Installing #{ruby} (this will take a while, please be patient)")
Command.execute('rvm', 'install', ruby, :abort_on_failure => 'Failed to install ruby')
report_success
true
end
# Make sure to install all required linux packages first
#
# === Return
# true:: Always return true
- def install_ruby_prerequesites_linux_ubuntu(ruby)
+ def install_ruby_prerequisites_linux_ubuntu(ruby)
report_check("Installing required packages, this could take a while")
packages = []
if ruby =~ /^ree-|^ruby-/
packages = %w(build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev)
end # TBD Define packages needed for other rubies
@@ -197,25 +197,25 @@
# Make sure to install all required CentOS / RedHhat packages first
# NOTE: For centos 5.4 final iconv-devel might not be available :(
#
# === Return
# true:: Always return true
- def install_ruby_prerequesites_linux_centos(ruby)
+ def install_ruby_prerequisites_linux_centos(ruby)
report_check("Installing required packages, this could take a while")
packages = []
if ruby =~ /^ree-|^ruby-/
packages = %w(gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel iconv-devel)
end # TBD Define packages needed for other rubies
Command.sudo('yum', 'install', '-y', *packages)
report_success
end
- alias :install_ruby_prerequesites_linux_redhat :install_ruby_prerequesites_linux_centos
+ alias :install_ruby_prerequisites_linux_redhat :install_ruby_prerequisites_linux_centos
# No pre-requesites to install ree or Matz ruby on Mac (TBD others)
#
# === Return
# true:: Always return true
- def install_ruby_prerequesites_darwin(ruby)
+ def install_ruby_prerequisites_darwin(ruby)
true
end
# Check .rvmrc and its content
#