Geordi ===== Geordi is a collection of command line tools we use in our daily work with Ruby, Rails and Linux at [makandra](http://makandra.com/). Installing the *geordi* gem will link all included tools into your `/usr/bin`: sudo gem install geordi Below you can find a list of all included tools. apache-site ----------- Enables the given virtual host in `/etc/apache2/sites-available` and disables all other vhosts: site makandra-com More information at http://makandra.com/notes/807-shell-script-to-quickly-switch-apache-sites b - Run the given command under `bundle exec` if a `Gemfile` is present in your working directory. If no `Gemfile` is present it just runs the given command: b spec spec/models More information at http://makandra.com/notes/684-automatically-run-bundle-exec-if-required dumple ------ Stores a timestamped database dump for the given Rails environment in `~/dumps`: dumple development More information at http://makandra.com/notes/1008-dump-your-database-with-dumple install-gems-remotely --------------------- Installs all gems in your `Gemfile.lock` as well as vendored gems on the given host: install-gems-remotely my.server.com More information at http://makandra.com/notes/692-install-a-local-gemfile-on-a-remote-server power-deploy ------------ Calls the Capistrano tasks `deploy`, `deploy:migrate` and `deploy:restart` on the given [Capistrano multistage](https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension) deployment target: power-deploy staging This script is considered legacy and will be removed eventually. You should [fix your deploy scripts](http://makandra.com/notes/1176-which-capistrano-hooks-to-use-for-events-to-happen-on-both-cap-deploy-and-cap-deploy-migrations) and then use [cap deploy:migrations](http://makandra.com/notes/1000-deploy-and-migrate-with-a-single-capistrano-command). power-rake ---------- Runs the given rake task in each Rails environment in `development`, `test`, `cucumber`, `performance`, if it exists: power-rake db:migrate More information at http://makandra.com/notes/737-run-a-rake-task-in-all-environments remotify-local-branch --------------------- Pushes the given branch to the remote `origin` and tracks it: remotify-local-branch redesign More information at http://makandra.com/notes/520-create-a-remote-branch-in-git remove-executable-flags ----------------------- Recursively removes executable flags from files in the working directory that probably shouldn't have them: remove-executable-flags shell-for --------- Opens an SSH shell on the given [Capistrano multistage](https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension) deployment target: shell-for production More information at http://makandra.com/notes/1209-script-to-open-an-ssh-shell-to-a-capistrano-deployment-target