Sunday, July 26, 2009

Installing Rails Bundle for Textmate Using Git

To install the Ruby on Rails bundle for textmate, do the following:
[greg:~] [greg:~] git --version
git version 1.6.3.3
[greg:~] cd "/Library/Application Support/Textmate"
[greg:Textmate] pwd
/Library/Application Support/Textmate
[greg:Textmate] git clone git://github.com/drnic/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle"
Initialized empty Git repository in /Library/Application Support/TextMate/Ruby on Rails.tmbundle/.git/
remote: Counting objects: 1100, done.
remote: Compressing objects: 100% (423/423), done.
remote: Total 1100 (delta 801), reused 873 (delta 642)
Receiving objects: 100% (1100/1100), 310.93 KiB | 151 KiB/s, done.
Resolving deltas: 100% (801/801), done.
[greg:Textmate] 

To update the bundle, do the followng:
[greg:Textmate] git branch
fatal: Not a git repository (or any of the parent directories): .git
[greg:Textmate] cd "Ruby on Rails.tmbundle" 
[greg:Ruby on Rails.tmbundle] git branch
* master
[greg:Ruby on Rails.tmbundle] git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/local_svn
  remotes/origin/master
[greg:Ruby on Rails.tmbundle]  git pull
Already up-to-date.
[greg:Ruby on Rails.tmbundle]