Skip to content

Commit

Permalink
Don't move puma-dev to ~/bin. Fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Jul 28, 2016
1 parent 67e225d commit e5ef098
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/puma/dev/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,12 @@ func Cleanup() {
}

func InstallIntoSystem(listenPort int) error {
path, err := osext.Executable()
binPath, err := osext.Executable()
if err != nil {
return err
}

err = os.MkdirAll(mustExpand("~/bin"), 0755)
if err != nil {
return err
}

fmt.Printf("* Copying %s to ~/bin/puma-dev...\n", path)

binPath := mustExpand("~/bin/puma-dev")

err = exec.Command("cp", path, binPath).Run()
if err != nil {
return err
}
fmt.Printf("* Use '%s' as the location of puma-dev\n", binPath)

var userTemplate = `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Expand Down

0 comments on commit e5ef098

Please sign in to comment.