Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 255 Bytes
dep 'existing db' do
setup {
requires "existing #{var(:db, :default => 'postgres')} db"
}
end
dep 'db gem' do
setup {
define_var :db, :choices => %w[postgres mysql]
requires var(:db) == 'postgres' ? 'pg.gem' : "#{var(:db)}.gem"
}
end