Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: undefined method `exists?' for class File #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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