Sha256: 3bc8d9d1e48917b45b424a6bd03868af8821ef9d7e057095628f19500f0cdc3b
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
require "mvcli/router" module MVCLI class RouterProvider requires :cortex def value builder = Router::DSL.new cortex.each do |core| if core.path.exists? 'routes.rb' builder.instance_eval core.path.read('routes.rb'), core.path.to_s('routes.rb'), 1 end end return builder.router end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mvcli-0.1.0 | lib/mvcli/std/providers/router_provider.rb |