Skip to content

Instantly share code, notes, and snippets.

@thommay
Created March 1, 2011 16:28
Show Gist options
  • Select an option

  • Save thommay/849391 to your computer and use it in GitHub Desktop.

Select an option

Save thommay/849391 to your computer and use it in GitHub Desktop.
@rmqver = ''
ruby_block "get rabbit version" do
block do
@rmqver = %x[dpkg -l rabbitmq-server |grep "^ii" |awk "{print $3}"]
@rmqver.sub!(/-\d*$/,'')
end
end
directory "/usr/lib/rabbitmq/lib/rabbitmq_server-#{@rmqver}/plugins" do
recursive true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment