From 56f5841d4b9c12296cdfcaeff174b2627d59afc8 Mon Sep 17 00:00:00 2001
From: Star Rauchenberger <fefferburbia@gmail.com>
Date: Sat, 7 Dec 2024 11:49:49 -0500
Subject: Migrate to full rails app

---
 test/dummy/bin/bundle |  3 ---
 test/dummy/bin/rails  |  4 ----
 test/dummy/bin/rake   |  4 ----
 test/dummy/bin/setup  | 38 --------------------------------------
 test/dummy/bin/update | 29 -----------------------------
 test/dummy/bin/yarn   | 11 -----------
 6 files changed, 89 deletions(-)
 delete mode 100755 test/dummy/bin/bundle
 delete mode 100755 test/dummy/bin/rails
 delete mode 100755 test/dummy/bin/rake
 delete mode 100755 test/dummy/bin/setup
 delete mode 100755 test/dummy/bin/update
 delete mode 100755 test/dummy/bin/yarn

(limited to 'test/dummy/bin')

diff --git a/test/dummy/bin/bundle b/test/dummy/bin/bundle
deleted file mode 100755
index 66e9889..0000000
--- a/test/dummy/bin/bundle
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-load Gem.bin_path('bundler', 'bundle')
diff --git a/test/dummy/bin/rails b/test/dummy/bin/rails
deleted file mode 100755
index 0739660..0000000
--- a/test/dummy/bin/rails
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-APP_PATH = File.expand_path('../config/application', __dir__)
-require_relative '../config/boot'
-require 'rails/commands'
diff --git a/test/dummy/bin/rake b/test/dummy/bin/rake
deleted file mode 100755
index 1724048..0000000
--- a/test/dummy/bin/rake
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-require_relative '../config/boot'
-require 'rake'
-Rake.application.run
diff --git a/test/dummy/bin/setup b/test/dummy/bin/setup
deleted file mode 100755
index 78c4e86..0000000
--- a/test/dummy/bin/setup
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env ruby
-require 'pathname'
-require 'fileutils'
-include FileUtils
-
-# path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
-
-def system!(*args)
-  system(*args) || abort("\n== Command #{args} failed ==")
-end
-
-chdir APP_ROOT do
-  # This script is a starting point to setup your application.
-  # Add necessary setup steps to this file.
-
-  puts '== Installing dependencies =='
-  system! 'gem install bundler --conservative'
-  system('bundle check') || system!('bundle install')
-
-  # Install JavaScript dependencies if using Yarn
-  # system('bin/yarn')
-
-
-  # puts "\n== Copying sample files =="
-  # unless File.exist?('config/database.yml')
-  #   cp 'config/database.yml.sample', 'config/database.yml'
-  # end
-
-  puts "\n== Preparing database =="
-  system! 'bin/rails db:setup'
-
-  puts "\n== Removing old logs and tempfiles =="
-  system! 'bin/rails log:clear tmp:clear'
-
-  puts "\n== Restarting application server =="
-  system! 'bin/rails restart'
-end
diff --git a/test/dummy/bin/update b/test/dummy/bin/update
deleted file mode 100755
index a8e4462..0000000
--- a/test/dummy/bin/update
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env ruby
-require 'pathname'
-require 'fileutils'
-include FileUtils
-
-# path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
-
-def system!(*args)
-  system(*args) || abort("\n== Command #{args} failed ==")
-end
-
-chdir APP_ROOT do
-  # This script is a way to update your development environment automatically.
-  # Add necessary update steps to this file.
-
-  puts '== Installing dependencies =='
-  system! 'gem install bundler --conservative'
-  system('bundle check') || system!('bundle install')
-
-  puts "\n== Updating database =="
-  system! 'bin/rails db:migrate'
-
-  puts "\n== Removing old logs and tempfiles =="
-  system! 'bin/rails log:clear tmp:clear'
-
-  puts "\n== Restarting application server =="
-  system! 'bin/rails restart'
-end
diff --git a/test/dummy/bin/yarn b/test/dummy/bin/yarn
deleted file mode 100755
index c2bacef..0000000
--- a/test/dummy/bin/yarn
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env ruby
-VENDOR_PATH = File.expand_path('..', __dir__)
-Dir.chdir(VENDOR_PATH) do
-  begin
-    exec "yarnpkg #{ARGV.join(" ")}"
-  rescue Errno::ENOENT
-    $stderr.puts "Yarn executable was not detected in the system."
-    $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
-    exit 1
-  end
-end
-- 
cgit 1.4.1