Skip to content

Commit

Permalink
✨ ❄️ 💡 ⚡️ Instead of creating ~/.homestead, just the repo folder inst…
Browse files Browse the repository at this point in the history
…ead.
  • Loading branch information
svpernova09 committed Feb 16, 2017
1 parent 94275e9 commit 06b52c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/vendor
/.vagrant
phpunit.xml
/Homestead.yaml
/after.sh
/aliases
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'json'
require 'yaml'

VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path(File.join(Dir.home, ".homestead"))
confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))

homesteadYamlPath = confDir + "/Homestead.yaml"
homesteadJsonPath = confDir + "/Homestead.json"
Expand Down
11 changes: 3 additions & 8 deletions init.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
@echo off

set homesteadRoot=%HOMEDRIVE%%HOMEPATH%\.homestead
copy /-y src\stubs\Homestead.yaml Homestead.yaml
copy /-y src\stubs\after.sh after.sh
copy /-y src\stubs\aliases aliases

mkdir "%homesteadRoot%"

copy /-y src\stubs\Homestead.yaml "%homesteadRoot%\Homestead.yaml"
copy /-y src\stubs\after.sh "%homesteadRoot%\after.sh"
copy /-y src\stubs\aliases "%homesteadRoot%\aliases"

set homesteadRoot=
echo Homestead initialized!
10 changes: 3 additions & 7 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/usr/bin/env bash

homesteadRoot=~/.homestead

mkdir -p "$homesteadRoot"

cp -i src/stubs/Homestead.yaml "$homesteadRoot/Homestead.yaml"
cp -i src/stubs/after.sh "$homesteadRoot/after.sh"
cp -i src/stubs/aliases "$homesteadRoot/aliases"
cp -i src/stubs/Homestead.yaml Homestead.yaml
cp -i src/stubs/after.sh after.sh
cp -i src/stubs/aliases aliases

echo "Homestead initialized!"

0 comments on commit 06b52c7

Please sign in to comment.