OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
use mkpath of pathname instead of FileUtils.mkdir_p explicitly
Ivan Kuchin6dc817d71328
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rakeindex 0f4c2addacf..29c17f11bef 100644--- a/lib/tasks/backup.rake+++ b/lib/tasks/backup.rake@@ -27,14 +27,14 @@#++require 'tempfile'-require 'fileutils'+require 'pathname'namespace :backup donamespace :database dodesc 'Creates a database dump which can be used as a backup.'task :create, [:path_to_backup] => [:environment] do |_task, args|args.with_defaults(path_to_backup: default_db_filename)- FileUtils.mkdir_p(Pathname.new(args[:path_to_backup]).dirname)+ Pathname(args[:path_to_backup]).dirname.mkpathconfig = database_configuration