#!/usr/bin/env rake require "bundler/gem_tasks" def exec(cmd); puts "[exec] #{cmd}"; system cmd; end namespace :db do desc "prepare db for specs" task "prepare" do exec "createdb pgjob_test" end end