Sha256: 6e1dce593bb866453d719a53d985ee50a199df898f1cb37cfe87c87a8e9bcaa6

Contents?: true

Size: 588 Bytes

Versions: 17

Compression:

Stored size: 588 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

17 entries across 17 versions & 4 rubygems

Version Path
alexjp-blackbook_csv-1.0.5 test/scripts/live_test.rb
alexjp-blackbook_csv-3.0.1 test/scripts/live_test.rb
alexjp-blackbook_csv-3.0.2 test/scripts/live_test.rb
bcardarella-blackbook-1.0.10 test/scripts/live_test.rb
bcardarella-blackbook-1.0.11 test/scripts/live_test.rb
bcardarella-blackbook-1.0.7 test/scripts/live_test.rb
bcardarella-blackbook-1.0.8 test/scripts/live_test.rb
bcardarella-blackbook-1.0.9 test/scripts/live_test.rb
briancollins-blackbook-1.0.15 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.12 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.13 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.14 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.15 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.16 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.17 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.18 test/scripts/live_test.rb
rakutenusa-blackbook-1.0.19 test/scripts/live_test.rb