Skip to content

Instantly share code, notes, and snippets.

@inokappa
Created June 22, 2013 02:21
Show Gist options
  • Select an option

  • Save inokappa/5835580 to your computer and use it in GitHub Desktop.

Select an option

Save inokappa/5835580 to your computer and use it in GitHub Desktop.
cookbook_file "/tmp/bench.sh" do
source "bench.sh"
mode 00755
user root
group root
end
execute "bench_start" do
command "/tmp/bench.sh > /tmp/bench_result"
only_if {File.exists?("/tmp/bench.sh") && File.exists?("/usr/bin/mysqlslap")}
not_if {File.exists?("/tmp/bench_result")}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment