Skip to content

Instantly share code, notes, and snippets.

@evan4498
Created June 12, 2012 14:22
Show Gist options
  • Save evan4498/2917838 to your computer and use it in GitHub Desktop.
Save evan4498/2917838 to your computer and use it in GitHub Desktop.
failure
if system("dpkg -s libxslt-dev libxml2-dev")
r = gem_package "rackspace-monitoring" do
version node['cloud_monitoring']['version']
action :nothing
end
r.run_action(:install)
else
package "libxslt-dev" do
action :install
end
package "libxml2-dev" do
action :install
end
r = gem_package "rackspace-monitoring" do
version node['cloud_monitoring']['version']
action :nothing
end
r.run_action(:install)
end
require 'rubygems'
Gem.clear_paths
require 'rackspace-monitoring'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment