Sha256: a7ac53c1baf0656af0d96cec8dad7a5db2c40f4b4095e81c4246f47bbf078da6
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
#!/usr/bin/env ruby require File.join( File.dirname(__FILE__), '../../lib/graybook.rb' ) require 'optparse' options = {} importer = :auto opts = OptionParser.new do |opts| opts.on("-u USERNAME") do |username| options[:username] = username end opts.on("-p PASSWORD") do |password| options[:password] = password end opts.on("-i [IMPORTER]") do |importer_name| importer = importer_name.to_sym end opts.on("-x [EXPORTER]") do |exporter_name| options[:as] = exporter_name.to_sym end end opts.parse!(ARGV) puts contacts = Graybook.get( importer, options )
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
graybook-1.0.24 | test/scripts/live_test.rb |
graybook-1.0.23 | test/scripts/live_test.rb |
graybook-1.0.22 | test/scripts/live_test.rb |