Permalink
Browse files

Merge pull request #1 from linjunpop/document

update README for openshift
  • Loading branch information...
2 parents 7492a7a + 60836a2 commit 0a3c427cbd831cc9811bba1bfc0e500673103db9 @Seppone committed May 16, 2012
Showing with 17 additions and 30 deletions.
  1. +17 −30 README.md
View
47 README.md
@@ -1,22 +1,13 @@
-rbenv installer
+rbenv installer for Openshift
===============
-This tool is used to install `rbenv` and some plugins. It also provides
-scripts to install required software to be able to compile **Ruby**.
+This tool is used to install `rbenv` and some plugins on [OPENSHIFT].
+It also provides scripts to install required software
+to be able to compile **Ruby**.
Installed plugins are `rbenv-vars`, `ruby-build` & `rbenv-installer`.
-Before Installing
------------------
-
-Install `git` and `curl`:
-
- sudo apt-get -y install git-core curl
-
-Make sure your user has `sudo` privileges.
-
-
Install
-------
@@ -25,13 +16,21 @@ Install [rbenv] and friends by running:
curl -L https://raw.github.com/Seppone/openshift-rbenv-installer/master/bin/rbenv-installer | bash
+Configuration
+-------------
+
+ export RBENV_ROOT=$OPENSHIFT_DATA_DIR/.rbenv
+ export PATH="$RBENV_ROOT/bin:$PATH"
+ eval "$(rbenv init -)"
+
+
Installing a Ruby
-----------------
-Install Ruby `1.9.3-p125` and make it global:
+Install Ruby `1.9.3-p194` and make it global:
- rbenv install 1.9.3-p125
- rbenv global 1.9.3-p125
+ rbenv install 1.9.3-p194
+ rbenv global 1.9.3-p194
Updating
@@ -42,20 +41,6 @@ Update `rbenv` and plugins provided by the installer running:
rbenv update
-Bootstrap
----------
-
-If you are installing `rbenv` in Ubuntu you'll probably need to install
-required packages first:
-
- rbenv bootstrap-ubuntu-10-04
- rbenv bootstrap-ubuntu-11-10
-
-To update `RubyGems` and install `bundler` and `rake`:
-
- rbenv bootstrap
-
-
Patch: Ruby Packages
--------------------
@@ -79,3 +64,5 @@ About rbenv
**rbenv** source code is available at <https://github.com/sstephenson/rbenv>
[rbenv]: https://github.com/sstephenson/rbenv
+[OPENSHIFT]: https://openshift.redhat.com/app
+

0 comments on commit 0a3c427

Please sign in to comment.