Sha256: 74a1cfe987a0f0fc3b0ebadd4ede3eca7e38b8ad5aeff64dbe6f10736d5cc640

Contents?: true

Size: 530 Bytes

Versions: 10

Compression:

Stored size: 530 Bytes

Contents

class Posgra::Exporter
  def self.export_roles(driver, options = {}, &block)
    self.new(driver, options).export_roles(&block)
  end

  def self.export_grants(driver, options = {}, &block)
    self.new(driver, options).export_grants(&block)
  end

  def initialize(driver, options = {})
    @driver = driver
    @options = options
  end

  def export_roles
    {
      :users => @driver.describe_users.keys,
      :users_by_group => @driver.describe_groups,
    }
  end

  def export_grants
    @driver.describe_grants
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
posgra-0.1.9 lib/posgra/exporter.rb
posgra-0.1.8 lib/posgra/exporter.rb
posgra-0.1.7 lib/posgra/exporter.rb
posgra-0.1.6 lib/posgra/exporter.rb
posgra-0.1.5 lib/posgra/exporter.rb
posgra-0.1.4 lib/posgra/exporter.rb
posgra-0.1.3 lib/posgra/exporter.rb
posgra-0.1.2 lib/posgra/exporter.rb
posgra-0.1.1 lib/posgra/exporter.rb
posgra-0.1.0 lib/posgra/exporter.rb