Skip to content

Instantly share code, notes, and snippets.

@sergii
Forked from bradgessler/Rakefile
Created September 8, 2023 21:33
Show Gist options
  • Save sergii/b931e76f65283f3065efd4b9da7cc8c3 to your computer and use it in GitHub Desktop.
Save sergii/b931e76f65283f3065efd4b9da7cc8c3 to your computer and use it in GitHub Desktop.

Revisions

  1. @bradgessler bradgessler created this gist Aug 31, 2023.
    13 changes: 13 additions & 0 deletions Rakefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # Add your own tasks in files placed in lib/tasks ending in .rake,
    # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

    require_relative "config/application"

    Rails.application.load_tasks

    desc "Set local gems"
    task :gems do
    Dir["gems/**"].each do |path|
    sh "bundle config local.#{File.basename(path)} #{path}"
    end
    end