Created
April 27, 2013 00:10
-
-
Save tatey/5471285 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__) | |
require 'bundler/setup' | |
require 'sequel' | |
if ARGV.size != 2 | |
puts "usage: #{__FILE__} <DATA_PATH> <DB_PATH>" | |
puts " #{__FILE__} ~/Desktop/sites.txt ~/Desktop/database.sqlite" | |
abort | |
end |
Nice, now to put them on GitHub :P
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of going
cd myscript; ruby script.rb
now I can gomyscript/script
. Don't have to remember where the Gemfile is either.