-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Cannot set custom adapter path through constructor of Robot class #1297
Comments
You are totally right. But I suspect nobody noticed because in the current state there is no way to set a custom |
Looked a little more closely, and I think it was just an oversight. It'd make sense to do Some part of me suspects I thought it was using the coffeescriptism of having constructor args like |
@mose @technicalpickles thanks for looking into this. Would you like me to issue a PR? |
Sure, go for it, that should be a simple one :) Thanks! |
I am thinking a bit more about this as I worked on #1366 . According to the docs, it's That said, I could imagine some use cases for it. You could override a builtin (ie shell and campfire) adapter with your own in a different directory. You could even just 'override' it but have it do something completely different, without having the overhead of a package, like a new, private adapter. Right now, I'm kind of inclind to stop exposing adapterPath in general, but I am definitely open to hearing feedback and use cases ✨ |
I ended up fixing this in #1366 I am still interested in hearing about use cases, because I suspect that HUBOT_DEFAULT_ADAPTERS will limit how the custom adapterPath can be used. |
@technicalpickles thanks for looking into this. And your ideas about potential use cases is on the right path of our use cases. Let me try to explain: The main use case here is that we are using In general, the design pattern of having Thanks 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
I think there is an error here: https://github.com/github/hubot/blob/498d65611388d2881e6ae24f74bd68a832a24211/src/robot.coffee#L43-L44
Since in the constructor argument for
adapterPath
is expected to benil
or existing,@adapterPath
will never be existing since it is not declared anywhere (the constructor usesadapterPath
and not@adapterPath
).The text was updated successfully, but these errors were encountered: