Class: Posgra::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/posgra/dsl.rb

Defined Under Namespace

Classes: Converter, Database, Grants, Roles

Class Method Summary collapse

Class Method Details

.convert_databases(exported, options = {}) ⇒ Object



10
11
12
# File 'lib/posgra/dsl.rb', line 10

def self.convert_databases(exported, options = {})
  Posgra::DSL::Converter.convert_databases(exported, options)
end

.convert_grants(exported, options = {}) ⇒ Object



6
7
8
# File 'lib/posgra/dsl.rb', line 6

def self.convert_grants(exported, options = {})
  Posgra::DSL::Converter.convert_grants(exported, options)
end

.convert_roles(exported, options = {}) ⇒ Object



2
3
4
# File 'lib/posgra/dsl.rb', line 2

def self.convert_roles(exported, options = {})
  Posgra::DSL::Converter.convert_roles(exported, options)
end

.parse_databases(dsl, path, options = {}) ⇒ Object



22
23
24
# File 'lib/posgra/dsl.rb', line 22

def self.parse_databases(dsl, path, options = {})
  Posgra::DSL::Database.eval(dsl, path, options).result
end

.parse_grants(dsl, path, options = {}) ⇒ Object



18
19
20
# File 'lib/posgra/dsl.rb', line 18

def self.parse_grants(dsl, path, options = {})
  Posgra::DSL::Grants.eval(dsl, path, options).result
end

.parse_roles(dsl, path, options = {}) ⇒ Object



14
15
16
# File 'lib/posgra/dsl.rb', line 14

def self.parse_roles(dsl, path, options = {})
  Posgra::DSL::Roles.eval(dsl, path, options).result
end