Project

General

Profile

« Previous | Next » 

Revision d7c67746

Added by Michael Moll almost 6 years ago

Fixes #19873 - Fix Style/MultilineIfModifier cop (#5705)

  • Refs #20891 - fix for new rubocop rules
  • Fixes #19873 - Fix Style/MultilineIfModifier cop

View differences:

lib/tasks/backup.rake
END_DESC
task :import_dump => :environment do
puts "Run this task with a file argument with the location of your db dump,
'rake db:import_dump file=DBDUMPLOCATION" and return unless ENV['file']
unless ENV['file']
puts "Run this task with a file argument with the location of your db dump,
'rake db:import_dump file=DBDUMPLOCATION" and return
end
config = Rails.configuration.database_configuration[Rails.env]
puts "Your backup is going to be imported from: #{ENV['file']}"

Also available in: Unified diff