foreman-docker / Rakefile @ 9ea40591
1 |
require 'bundler/gem_tasks'
|
---|---|
2 |
|
3 |
begin
|
4 |
require 'bundler/setup'
|
5 |
rescue LoadError |
6 |
Rails.logger.error 'You must `gem install bundler` and `bundle install` to run rake tasks' |
7 |
end
|
8 |
|
9 |
begin
|
10 |
require 'rubocop/rake_task'
|
11 |
RuboCop::RakeTask.new |
12 |
rescue => _
|
13 |
puts "Rubocop not loaded."
|
14 |
end
|
15 |
|
16 |
task :default do |
17 |
Rake::Task['rubocop'].execute |
18 |
end
|