Sha256: 2efcd09b563e7ea1d542dd275d6c2edf9f28e0cc21956ad4e2cd99e8f8ba53e1

Contents?: true

Size: 748 Bytes

Versions: 75

Compression:

Stored size: 748 Bytes

Contents

dir = File.dirname(__FILE__) + '/../lib'
$LOAD_PATH << dir unless $LOAD_PATH.include?(dir)

#require 'rubygems'
require 'amee'
require 'optparse'

# Command-line options - get username, password, and server
options = {}
OptionParser.new do |opts|
  opts.on("-u", "--username USERNAME", "AMEE username") do |u|
    options[:username] = u
  end  
  opts.on("-p", "--password PASSWORD", "AMEE password") do |p|
    options[:password] = p
  end
  opts.on("-s", "--server SERVER", "AMEE server") do |s|
    options[:server] = s
  end
end.parse!

# Connect
connection = AMEE::Connection.new(options[:server], options[:username], options[:password])

# Create a new profile
profile = AMEE::Profile::Profile.create(connection)
puts "#{profile.uid} created"

Version data entries

75 entries across 75 versions & 2 rubygems

Version Path
amee-2.3.1 examples/create_profile.rb
amee-2.3.0 examples/create_profile.rb
amee-2.2.1 examples/create_profile.rb
amee-2.2.0 examples/create_profile.rb
amee-2.0.35 examples/create_profile.rb
amee-2.0.34 examples/create_profile.rb
amee-2.0.33 examples/create_profile.rb
amee-2.0.32 examples/create_profile.rb
amee-2.0.31 examples/create_profile.rb
amee-2.0.30 examples/create_profile.rb
amee-2.0.29 examples/create_profile.rb
amee-2.0.28 examples/create_profile.rb
amee-2.0.27 examples/create_profile.rb
amee-2.0.26 examples/create_profile.rb
amee-2.0.25 examples/create_profile.rb