stevenhaddox / rvm_fw

RVM::FW - Exposing hidden Rubies for firewalled RVMs
http://rvm-fw.herokuapp.com
MIT License
31 stars 9 forks source link

Add a TL;DR section #22

Closed mindscratch closed 10 years ago

mindscratch commented 10 years ago

The installation instructions can be a little confusing for new users and having a TL;DR section how to install RVM and configure the db/known files would make a nice addition to the top of the index.haml.

stevenhaddox commented 10 years ago

Love this. Would it be easier to just add an installation script that handles installing RVM & updating the user/db & user/known files automatically?

If so we could make an install script that doubled as an update script. Pointing to: http(s)://rvm../go could handle the three main jobs of updating the local user files and the install of RVM itself...

Thoughts?

adamonduty commented 10 years ago

:+1: Would be very useful to have a script that updates the user/db and user/known files automatically, especially as part of the install. As part of the update is even awesomer.

stevenhaddox commented 10 years ago

Done for now (see new instructions / verbiage at: http://rvm-fw.herokuapp.com/). I'll create another issue for the install script.

adamonduty commented 10 years ago

This looks great! My only suggestion would be use either curl or wget, not both. Curl is not included by default in ubuntu, but wget is. Seems redhat-based distros are the opposite.

stevenhaddox commented 10 years ago

@adamonduty thanks. That's probably a good idea... Technically I should have the script determine which tool they have and use that... hmm....

stevenhaddox commented 10 years ago

@adamonduty looks like CentOS 5.9 minimal has both curl and wget. Ubuntu has wget by default you say? If so I'll switch it all to wget >.<

adamonduty commented 10 years ago

Or even two sections, one for each tool? The vagrant centos 6.5 box I just tried didn't have wget by default, but I'm too lazy to figure it out definitively.

stevenhaddox commented 10 years ago

@adamonduty forgot to mention that the installer script commit also updated the homepage to include using wget or curl to invoke the script ;)

adamonduty commented 10 years ago

Looks like I've led you astray.

rvm doesn't work without curl!

For ubuntu 12.04, this is based on the output of rvm requirements:

# for rvm
sudo apt-get --no-install-recommends install bash curl git patch bzip2

# for ruby
sudo apt-get --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev

\curl http://rvm-fw.slkdemos.com/install | bash
source ~/.bash_profile
rvm install ruby-2.0.0-p353

Probably need to figure out the best strategy. The whole idea was to make it easy for those who don't have prior rvm exposure.

stevenhaddox commented 10 years ago

@adamonduty I'm not sure I know what else I can do to simplify things? The RVM::FW script now works with both wget & curl. Installs RVM, downloads the two config files, sources bash_profile && bashrc && rvm/scripts/rvm. Then it runs rvm list known to show what rubies are available and finally outputs a sample line for rvm install .

Other ideas are certainly welcomed, but I think this is as simplified as I can make it on my side...

BTW, I'd be shocked if RVM doesn't support wget. I'm 95% certain I've seen code in it to determine which command to use...

adamonduty commented 10 years ago

Ah, you're right. Sent pull request #27!

stevenhaddox commented 10 years ago

@adamonduty I completely missed refactoring the original RVM install script. Thanks a ton for the pull request! Merged ;)