lib/rom/boot/dsl.rb in rom-0.3.1 vs lib/rom/boot/dsl.rb in rom-0.4.0
- old
+ new
@@ -1,7 +1,8 @@
require 'rom/boot/schema_dsl'
require 'rom/boot/mapper_dsl'
+require 'rom/boot/command_dsl'
module ROM
class Boot
class DSL
@@ -18,9 +19,15 @@
dsl.call
end
def mappers(&block)
dsl = MapperDSL.new
+ dsl.instance_exec(&block)
+ dsl.call
+ end
+
+ def commands(&block)
+ dsl = CommandDSL.new
dsl.instance_exec(&block)
dsl.call
end
end