-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Channel generator #95
Channel generator #95
Conversation
The most important changes: add class options add tests add default values for prompts change generator name from `cable_ready_channel` to `cable_ready:channel`
update cable_ready channel generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add details like the --stream-for
and --stream-from
options to the USAGE doc? Looks like there's a merge conflict, but I'm good for this to merge whenever you're ready once conflicts are resolved.
@marcoroth assured me that those details are going to be added automatically when you invoke —help |
Good to go! |
Add a generator that will provide a "batteries included" cable ready channel.
This will:
ActionCable
generatorstream_to
call to thechannel.rb
controllers
directory is presentstream_for
intochannel.rb
if (data.cableReady) CableReady.perform(data.operations)
into thechannel.js
file, plus importI wanted to also include a test, but failed at mocking STDIN with
StringIO
Closes #94