From c7261e8d640d374d9760cbf9d482c25c64473932 Mon Sep 17 00:00:00 2001
From: Thomas von Deyen <thomas@vondeyen.com>
Date: Wed, 6 May 2020 00:57:17 +0200
Subject: [PATCH] Invoke rake task in upgrader instead of system call (#1815)

---
 lib/alchemy/upgrader/five_point_zero.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/alchemy/upgrader/five_point_zero.rb b/lib/alchemy/upgrader/five_point_zero.rb
index 1df16b74e3..ae57b3f9b2 100644
--- a/lib/alchemy/upgrader/five_point_zero.rb
+++ b/lib/alchemy/upgrader/five_point_zero.rb
@@ -7,9 +7,9 @@ class Upgrader::FivePointZero < Upgrader
     class << self
       def install_gutentag_migrations
         desc "Install Gutentag migrations"
-        `bundle exec rake gutentag:install:migrations`
+        Rake::Task["gutentag:install:migrations"].invoke
         Alchemy::Upgrader::Tasks::HardenGutentagMigrations.new.patch_migrations
-        `bundle exec rake db:migrate`
+        Rake::Task["db:migrate"].invoke
       end
 
       def remove_layout_roots