Back to Moon

Scripts

website/docs/__partials__/migrate/ruby/scripts.mdx

2.2.4732 B
Original Source

The Ruby ecosystem has standardized around the task runner Rake, which is a Makefile like system written in Ruby. While Rake is great and it accomplishes everything it set out to do, it's not as efficient as moon. It does not support granular inputs, smart hashing, incremental caching, and all the other performance benefits that moon provides.

With that being said, you do not have to migrate away from Rake. Instead, you can simply run Rake commands from within moon tasks. This gives you the best of both worlds.

yaml
language: 'ruby'

tasks:
  test:
    command: 'rake test'
    inputs:
      - '@globs(sources)'
      - '@globs(tests)'
      - 'Rakefile'