Skip to content

Instantly share code, notes, and snippets.

@samnang
Created August 21, 2011 17:22
Show Gist options
  • Select an option

  • Save samnang/1160876 to your computer and use it in GitHub Desktop.

Select an option

Save samnang/1160876 to your computer and use it in GitHub Desktop.
Sprinkle: install Ruby Enterprise
package :ruby_enterprise do
description 'Ruby Enterprise Edition'
version '1.8.7-2011.03'
REE_PATH = "/usr/local/ruby-enterprise"
binaries = %w(erb gem irb rackup rails rake rdoc ree-version ri ruby testrb)
source "http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-#{version}.tar.gz" do
custom_install 'sudo ./installer --auto=/usr/local/ruby-enterprise'
binaries.each {|bin| post :install, "ln -s #{REE_PATH}/bin/#{bin} /usr/local/bin/#{bin}" }
end
verify do
has_directory REE_PATH
has_executable "#{REE_PATH}/bin/ruby"
binaries.each {|bin| has_symlink "/usr/local/bin/#{bin}", "#{REE_PATH}/bin/#{bin}" }
end
requires :ree_dependencies
end
package :ree_dependencies do
apt %w(zlib1g-dev libreadline5-dev libssl-dev)
requires :build_essential
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment