Skip to content
Collection of command line tools used in our daily work with Ruby, Rails and Linux. http://makandra.com/
Ruby Cucumber
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib/geordi
.gitignore
Gemfile
README.md
Rakefile
geordi.gemspec

README.md

Geordi

Geordi is a collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.

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

Runs the given command under bundle exec if a Gemfile is present in your working directory. If no Gemfile is present just runs the given command:

b spec spec/models

More information at http://makandra.com/notes/684-automatically-run-bundle-exec-if-required

cuc

Runs Cucumber with the arguments you want, bundle exec, cucumber_spinner detection, etc.:

cuc features/users.feature

More information at http://makandra.com/notes/1277-a-nicer-way-to-run-rspec-and-or-cucumber

cleanup-directory

Removes unnecessary files from your project directory:

cleanup-directory

More information at http://makandra.com/notes/951-shell-script-to-clean-up-a-project-directory

dump-for

Dumps the database on your server for a given Capistrano multistage deployment target, then copies the dump to your project root.

dump-for production

More information at http://makandra.com/notes/1237-script-to-create-and-copy-a-production-dump-to-your-project-root

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, to 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 deployment target:

power-deploy staging

This script is considered legacy and will be removed eventually. You should fix your deploy scripts and then use cap deploy:migrations.

power-rake

Runs the given rake task in each Rails environment in development, test, cucumber, performance, if existing:

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 (like Ruby, HTML, CSS, image, Rake and similar files).

remove-executable-flags

More information at http://makandra.com/notes/659-recursively-remove-unnecessary-execute-flags

rs

Runs RSpec with the arguments you want, RSpec 1/2 detection, bundle exec, rspec_spinner detection, etc.:

rs spec/models/user_spec.rb

More information at http://makandra.com/notes/1277-a-nicer-way-to-run-rspec-and-or-cucumber

shell-for

Opens an SSH shell on the given Capistrano multistage deployment target:

shell-for production

More information at http://makandra.com/notes/1209-script-to-open-an-ssh-shell-to-a-capistrano-deployment-target

tests

Runs both rs and cu. Call from any project directory:

tests

More information at http://makandra.com/notes/1277-a-nicer-way-to-run-rspec-and-or-cucumber

Something went wrong with that request. Please try again.