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

What about adding jobs script to executables? #401

Open
blocknotes opened this issue Nov 4, 2024 · 2 comments
Open

What about adding jobs script to executables? #401

blocknotes opened this issue Nov 4, 2024 · 2 comments

Comments

@blocknotes
Copy link

blocknotes commented Nov 4, 2024

Hey :)
In the gemspec, it could be useful something like:

  spec.bindir      = "exe"
  spec.executables = ["jobs"]

And the presence of the script in exe path (updated to run also from the ruby bin path).
Useful to use it via bundle exec for example.

What do you think?

@zarqman
Copy link

zarqman commented Nov 9, 2024

FYI, jobs is a standard unix binary (and internal command in some shells, IIRC), so if the gems binary dir is in the $PATH, this will conflict. It'd have to be renamed to something like solid_queue first.

@rosa
Copy link
Member

rosa commented Nov 11, 2024

Right now the jobs script is just to be copied over to your Rails app's bin directory, it's not intended to be run in any other way, so I'm not sure why this would be an advantage 🤔

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