Sha256: 538c7f17adf392a55a6f3fbd15fde78ac66eeb4f0ee5079571a4ff40e44eb1ce

Contents?: true

Size: 587 Bytes

Versions: 5

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby
require File.join( File.dirname(__FILE__), '../../lib/blackbook.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 = Blackbook.get( importer, options )

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blackbook-1.0.0 test/scripts/live_test.rb
blackbook-1.0.1 test/scripts/live_test.rb
blackbook-1.0.2 test/scripts/live_test.rb
blackbook-1.0.3 test/scripts/live_test.rb
blackbook-1.0.4 test/scripts/live_test.rb