Skip to content

Commit

Permalink
Added ability to change between ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Spangenberg committed Jul 26, 2011
1 parent 19dd9d5 commit 5f403c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ruby/recipes/default.rb
Expand Up @@ -24,6 +24,11 @@
action :create_if_missing
end

package "ruby-enterprise" do
action :remove
ignore_failure true
end

execute "Install Ruby #{node[:ruby][:full_version]}" do
cwd "/tmp"
command "dpkg -i /tmp/#{node[:ruby][:deb]}"
Expand Down
5 changes: 5 additions & 0 deletions ruby_enterprise/recipes/default.rb
Expand Up @@ -26,6 +26,11 @@
not_if { ::File.exists?("/tmp/#{File.basename(node[:ruby_enterprise][:url][arch])}") }
end

package "ruby1.9" do
action :remove
ignore_failure true
end

execute "Install Ruby Enterprise Edition" do
cwd "/tmp"
command "dpkg -i /tmp/#{File.basename(node[:ruby_enterprise][:url][arch])}"
Expand Down

0 comments on commit 5f403c9

Please sign in to comment.