Skip to content

Commit

Permalink
fix: undefined method `exists?' for class File
Browse files Browse the repository at this point in the history
  • Loading branch information
jhult committed Aug 13, 2024
1 parent 76c86d9 commit 89b5ad9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
13 changes: 7 additions & 6 deletions Formula/fusionauth-app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ class FusionauthApp < Formula

def install
prefix.install "fusionauth-app"
etc.install "config" => "fusionauth" unless File.exists? etc / "fusionauth"
prefix.install_symlink etc / "fusionauth" => "config"
(var / "fusionauth/java").mkpath unless File.exists? var / "fusionauth/java"
prefix.install_symlink var / "fusionauth/java"
(var / "log/fusionauth").mkpath unless File.exists? var / "log/fusionauth"
prefix.install_symlink var / "log/fusionauth" => "logs"
etc.install "config" => "fusionauth"
(prefix/"config").unlink if (prefix/"config").exist?
prefix.install_symlink etc/"fusionauth" => "config"
(var/"fusionauth/java").mkpath
prefix.install_symlink var/"fusionauth/java"
(var/"log/fusionauth").mkpath
prefix.install_symlink var/"log/fusionauth" => "logs"
end

def post_install
Expand Down
9 changes: 5 additions & 4 deletions Formula/fusionauth-search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ class FusionauthSearch < Formula

def install
prefix.install "fusionauth-search"
etc.install "config" => "fusionauth" unless File.exists? etc/"fusionauth"
etc.install "config" => "fusionauth"
(prefix/"config").unlink if (prefix/"config").exist?
prefix.install_symlink etc/"fusionauth" => "config"
(var/"log/fusionauth").mkpath unless File.exists? var/"log/fusionauth"
(var/"log/fusionauth").mkpath
prefix.install_symlink var/"log/fusionauth" => "logs"
(var/"fusionauth/java").mkpath unless File.exists? var/"fusionauth/java"
(var/"fusionauth/java").mkpath
prefix.install_symlink var/"fusionauth/java"
(var/"fusionauth/data").mkpath unless File.exists? var/"fusionauth/data"
(var/"fusionauth/data").mkpath
prefix.install_symlink var/"fusionauth/data"

# Hide all the dylibs from brew
Expand Down

0 comments on commit 89b5ad9

Please sign in to comment.