Created
May 13, 2015 09:08
A skeleton for a ruby script
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 | |
require 'rubygems' | |
require 'fastercsv' | |
require 'ruby-debug' | |
require 'logger' | |
log = Logger.new(STDOUT, File::WRONLY | File::APPEND | File::CREAT) | |
log.level = Logger::DEBUG | |
log.datetime_format = "%Y-%m-%d %H:%M:%S" | |
case ARGV.size | |
when 1 | |
when 2 | |
else #usage | |
puts | |
puts | |
puts "usage: " | |
exit 0 | |
end | |
log.info 'starting ...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment