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

Running rake tasks from a different gem? #42

Open
Frexuz opened this issue Jul 26, 2017 · 0 comments
Open

Running rake tasks from a different gem? #42

Frexuz opened this issue Jul 26, 2017 · 0 comments

Comments

@Frexuz
Copy link

Frexuz commented Jul 26, 2017

I'm using https://github.com/redealumni/i18n_yaml_sorter

The gem has a rake task that is ran by rake i18n:sort, which works fine running manually

Guardfile

guard 'rake', task: 'i18n:sort' do
  watch(%r{^config/locales/.+\.yml})
end

But I'm getting an error

14:10:54 - INFO - Starting guard-rake i18n:sort
14:10:59 - INFO - running i18n:sort
14:10:59 - ERROR - Guard::Rake failed to run rake task <i18n:sort>, exception was:
> [#76a7d63a12cd] 	RuntimeError: Don't know how to build task 'i18n:sort' (see --tasks)

rake --tasks shows

rake i18n:sort[path_to_file]            # Sort locales keys in alphabetic order

Ideas? :)

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

1 participant