aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rbenv-gemset.rb
blob: d3de4097e7298968415c04fd8ac107d6c5585a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class RbenvGemset < Formula
  url 'https://github.com/jamis/rbenv-gemset/tarball/v0.3.0'
  homepage 'https://github.com/jamis/rbenv-gemset'
  sha1 '52e058e43a4a1395c3fe923365cee53d0977c41a'

  head 'https://github.com/jamis/rbenv-gemset.git'

  depends_on 'rbenv'

  def install
    prefix.install Dir['*']

    rbenv_plugins = "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins"
    mkdir_p rbenv_plugins
    ln_sf opt_prefix, "#{rbenv_plugins}/#{name}"
  end
end