Skip to content

Commit b2b7a08

Browse files
Revert "Migrate contents of Spin data directory to spinframework location"
Signed-off-by: Kate Goldenring <[email protected]>
1 parent 757890a commit b2b7a08

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Formula/spin.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ def install
2828
end
2929

3030
def post_install
31-
# Migrate plugins and templates and templates data to new data directory
32-
source_dir = "#{HOMEBREW_PREFIX}/etc/fermyon-spin"
33-
dest_dir = "#{HOMEBREW_PREFIX}/etc/spinframework-spin"
34-
if File.directory?(source_dir)
35-
ohai "Migrating Spin data from #{source_dir} to #{dest_dir}"
36-
mkdir_p dest_dir
37-
Dir.glob("#{source_dir}/*").each do |file|
38-
mv(file, dest_dir)
39-
end
40-
Dir.rmdir(source_dir) if Dir.empty?(source_dir) # Remove if empty
41-
end
42-
4331
# Install default templates and plugins for language tooling and deploying apps to the cloud.
4432
# Templates and plugins are installed into `pkgetc/"templates"` and `pkgetc/"plugins"`.
4533
system "#{bin}/spin", "templates", "install", "--git", "https://github.com/fermyon/spin", "--upgrade"

0 commit comments

Comments
 (0)