Skip to content

Running rake tasks from a different gem? #42

@Frexuz

Description

@Frexuz

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? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions