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

Ruby API vs Thor CLI #62

Closed
tdreyno opened this issue Apr 16, 2013 · 2 comments
Closed

Ruby API vs Thor CLI #62

tdreyno opened this issue Apr 16, 2013 · 2 comments
Assignees
Milestone

Comments

@tdreyno
Copy link

tdreyno commented Apr 16, 2013

Any chance the Thor generator could be refactored into a pure Ruby API (that would then be called by the watcher)?

I'd like to use this in Middleman, but we've already got our own watcher and really only need an API like:

FontCustom.generate("path/to/folder", :output => "some_other_folder", :format => :scss)
@kaizau
Copy link
Member

kaizau commented Apr 16, 2013

Thor classes can be called directly somewhat obtusely. Here's how I'm doing it in 1.0.0: https://github.com/FontCustom/fontcustom/blob/big-refactor/lib/fontcustom/cli.rb#L29

I'll look into sneaking in a module method with the clean Ruby API though.

@ghost ghost assigned kaizau Apr 17, 2013
@kaizau kaizau closed this as completed Apr 19, 2013
@backflip
Copy link

This would be great.

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

No branches or pull requests

3 participants