Skip to content

Instantly share code, notes, and snippets.

@bakins
Created September 29, 2010 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakins/602952 to your computer and use it in GitHub Desktop.
Save bakins/602952 to your computer and use it in GitHub Desktop.
bash "build something" do
user "root"
cwd "/var/lib/git/something"
action :nothing
code <<-EOH
make clean || true
./buildconfig.sh || true
./configure --prefix=/usr/local/
./configure
make
make install
EOH
end
git "/var/lib/git/something" do
action :sync
repository "git://some_url/something.git"
revision "master"
depth 1
notifies :run, resources(:bash => "build something"), :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment