about summary refs log tree commit diff
path: root/lib/tasks/mastodon.rake
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-21 19:57:15 -0500
committerGitHub <noreply@github.com>2023-02-22 09:57:15 +0900
commit8fd3fc404dd848253767252bbd76275e091832b1 (patch)
tree05dac486f88021edebe5c27edc8466f1484e9114 /lib/tasks/mastodon.rake
parent48aeab90f657055e5516b844f47fcf5c097458a1 (diff)
Autofix Rubocop Rails/RootPathnameMethods (#23760)
Diffstat (limited to 'lib/tasks/mastodon.rake')
-rw-r--r--lib/tasks/mastodon.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index 0a3946ac7..6c0e66922 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -445,7 +445,7 @@ namespace :mastodon do
           generated_header << "# using docker-compose or not.\n\n"
         end
 
-        File.write(Rails.root.join('.env.production'), "#{generated_header}#{env_contents}\n")
+        Rails.root.join('.env.production').write("#{generated_header}#{env_contents}\n")
 
         if using_docker
           prompt.ok 'Below is your configuration, save it to an .env.production file outside Docker:'