Skip to content

Commit 1e4dec9

Browse files
committed
Add Bundler gem tasks to Rakefile for release support
1 parent 997d301 commit 1e4dec9

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Rakefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env rake
2+
require "bundler/gem_helper"
23

3-
begin
4-
require 'bundler/setup'
5-
rescue LoadError
6-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
4+
Bundler::GemHelper.install_tasks(name: "refinerycms")
5+
6+
%w[core dragonfly images pages resources testing].each do |sub_gem|
7+
Bundler::GemHelper.install_tasks(dir: sub_gem, name: "refinerycms-#{sub_gem}")
78
end
89

910
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)

0 commit comments

Comments
 (0)