Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define an optional rake or generator to set up rom_factory #6

Open
ghost opened this issue Jan 26, 2017 · 1 comment
Open

Define an optional rake or generator to set up rom_factory #6

ghost opened this issue Jan 26, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 26, 2017

It will be awesome to have a rake or generator task that sets the rom_factory basic configuration, like:

Create -> ../config/initializers/rom_factory.rb
Inside it, for example Hanami setup:

RomFactory::Config.configure do |config|
config.container = Hanami::Repository.container
end

Create -> ../spec/rom_factories/

Command line, something like:

% rake rom_factory:install hanami(whatever framework)
% hanami(whatever framework) generator rom_factory

@janjiss
Copy link
Owner

janjiss commented Feb 1, 2017

Good point. I need to think about this a little bit, because we need to figure out a clear way to support different sets of frameworks and potential initialisation locations. For example, I'm not using Rails, so some of these locations might not make sense for me. I'll get back to you on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant