Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

As a Developer, I want to easily scaffold custom entities, interactors, repositories, conductors, controllers, etc... #13

Open
robyurkowski opened this issue Feb 13, 2013 · 4 comments

Comments

@robyurkowski
Copy link
Contributor

I should be able to use a generator or something similar to create a new file.

@robyurkowski
Copy link
Contributor Author

Maybe something like this?

Entities

rails g abc:entity pages/page text
rails g abc:entity <path_to_entity> <attr_reader attributes>

# g app/entities/pages/page.rb
# g spec/entities/pages/page_spec.rb

Interactors

rails g abc:interactor pages/builds_page page menu
rails g abc:interactor <path_to_interactor> <attr_reader attributes>

# g app/interactors/pages/builds_page.rb
# g spec/interactors/pages/builds_page_spec.rb

And so on and so forth?

@robyurkowski
Copy link
Contributor Author

@ugisozols Do you think you can look into this?

@ugisozols
Copy link
Member

Sure.

@parndt
Copy link
Member

parndt commented Mar 11, 2013

Is it really so hard to write them? Maybe the generator just generates
TDD specs and you make them pass?

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

No branches or pull requests

3 participants