Class: Posgra::DSL
- Inherits:
-
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
.convert_grants(exported, options = {}) ⇒ Object
.convert_roles(exported, options = {}) ⇒ Object
.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
|