module-puppetlabs-mysql/lib/puppet/provider/database_grant/default.rb

22 lines
404 B
Ruby
Raw Normal View History

2011-05-25 08:22:43 +02:00
# A grant is either global or per-db. This can be distinguished by the syntax
# of the name:
# user@host => global
# user@host/db => per-db
Puppet::Type.type(:database_grant).provide(:default) do
desc "Uses mysql as database."
def destroy
return false
end
def create
return false
end
def exists?
fail('Default provider for database_grant should never be used')
end
end