Skip to content

Instantly share code, notes, and snippets.

@masciugo
Created May 13, 2015 09:08
Show Gist options
  • Save masciugo/53d59e07f236b0b7ee9a to your computer and use it in GitHub Desktop.
Save masciugo/53d59e07f236b0b7ee9a to your computer and use it in GitHub Desktop.
A skeleton for a ruby script
#!/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