Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87fb5a commit def1849Copy full SHA for def1849
homebrew/chruby.rb
@@ -0,0 +1,28 @@
1
+require 'formula'
2
+
3
+class Chruby < Formula
4
5
+ url 'https://github.com/downloads/postmodern/chruby/chruby-0.2.0.tar.gz'
6
+ homepage 'https://github.com/postmodern/chruby#readme'
7
+ md5 '6b6424e0455101e9f071fd72515c3b38'
8
+ head 'https://github.com/postmodern/chruby.git'
9
10
+ def install
11
+ system 'make', 'install', "PREFIX=#{prefix}"
12
+ end
13
14
+ def caveats; <<-EOS.undent
15
+ Add chruby to ~/.bashrc or ~/.profile:
16
17
+ . #{prefix}/share/chruby/chruby.sh
18
19
+ RUBIES=(
20
+ /usr/local/ruby-1.9.3
21
+ /opt/jruby-1.7.0
22
+ )
23
24
+ For system-wide installation, add the above text to /etc/profile.d/chruby.sh
25
26
+ EOS
27
28
+end
0 commit comments