Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
dje committed Dec 3, 2011
1 parent c8a21d1 commit 2341bf9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions recipes/whisper.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
remote_file "/usr/src/whisper-#{node.graphite.version}.tar.gz" do
source node.graphite.whisper.uri
checksum node.graphite.whisper.checksum
version = node[:graphite][:version]

remote_file "/usr/src/whisper-#{version}.tar.gz" do
source node[:graphite][:whisper][:uri]
checksum node[:graphite][:whisper][:checksum]
end

execute "untar whisper" do
command "tar xzf whisper-#{node.graphite.version}.tar.gz"
creates "/usr/src/whisper-#{node.graphite.version}"
command "tar xzf whisper-#{version}.tar.gz"
creates "/usr/src/whisper-#{version}"
cwd "/usr/src"
end

execute "install whisper" do
command "python setup.py install"
creates "/usr/local/lib/python2.6/dist-packages/whisper-#{node.graphite.version}.egg-info"
cwd "/usr/src/whisper-#{node.graphite.version}"
creates "/usr/local/lib/python2.6/dist-packages/whisper-#{version}.egg-info"
cwd "/usr/src/whisper-#{version}"
end

0 comments on commit 2341bf9

Please sign in to comment.