Sha256: 4f2866b84df2057e3c53102fabd685271d53701e05d1e1ea26c6dfe34cc803f3

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

class Posgra::DSL::Database::Role::Database
  include Posgra::Logger::Helper
  include Posgra::TemplateHelper

  attr_reader :result

  def initialize(context, database, options, &block)
    @database = database
    @options = options
    @context = context.merge(:database => database)
    @result = {}
    instance_eval(&block)
  end

  def grant(name, options = {})
    name = name.to_s

    @result[name] = {
      'is_grantable' => !!options[:grantable]
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
posgra-0.2.3.beta lib/posgra/dsl/database/role/database.rb
posgra-0.2.2 lib/posgra/dsl/database/role/database.rb
posgra-0.2.1 lib/posgra/dsl/database/role/database.rb
posgra-0.2.0 lib/posgra/dsl/database/role/database.rb