Skip to content

Instantly share code, notes, and snippets.

@kotas
Forked from dataich/phpbrew.rb
Created February 27, 2014 15:57
Show Gist options
  • Select an option

  • Save kotas/9252894 to your computer and use it in GitHub Desktop.

Select an option

Save kotas/9252894 to your computer and use it in GitHub Desktop.

Revisions

  1. @dataich dataich revised this gist Mar 27, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion phpbrew.rb
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    require 'formula'

    class Onion < Formula
    class Phpbrew < Formula
    head 'https://raw.github.com/c9s/phpbrew/master/phpbrew'
    homepage 'https://github.com/c9s/phpbrew'

  2. @dataich dataich created this gist Mar 27, 2012.
    16 changes: 16 additions & 0 deletions phpbrew.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    require 'formula'

    class Onion < 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