require 'formula' class Phpbrew < Formula head 'https://raw.github.com/c9s/phpbrew/master/phpbrew' homepage 'https://github.com/c9s/phpbrew' def install system "chmod a+x phpbrew" system "mkdir -p #{prefix}/bin" system "cp phpbrew #{prefix}/bin" end def test system "phpbrew --version" end end