Sha256: 076551590e6f412255f43983a496e2eec7a4346691d26f65a20018ff5ef3989a
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
namespace 'db' do kit = Kit.new 'config.yml' task :create do kit.db_create end task :destroy do kit.db_destroy end task :reset => [:destroy, :create, :migrate] do end task :environment do kit.db_connect end task :migrate, [:direction, :steps] => [:create, :environment] do |_, args| args.with_defaults(direction: nil, steps: 1) if args[:direction].nil? kit.db_migrate else kit.db_migrate args[:direction], args[:steps] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kit-1.1.4 | lib/kit/rake/admin/database.rb |
kit-1.1.2 | lib/kit/rake/admin/database.rb |
kit-1.1.1 | lib/kit/rake/admin/database.rb |