Sha256: b2ea6d00bd88270217d5958e97d4b6237b7820c06003b03e3823adcb0946f26e

Contents?: true

Size: 218 Bytes

Versions: 31

Compression:

Stored size: 218 Bytes

Contents

Server.api :create_user do |params,user|
  app = App.load(APP_NAME)
  u = User.create({:login => params[:attributes]['login']})
  u.password = params[:attributes]['password']
  app.users << u.login
  "User created"
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rhosync-2.1.2 lib/rhosync/api/create_user.rb
rhosync-2.1.1 lib/rhosync/api/create_user.rb
rhosync-2.1.0 lib/rhosync/api/create_user.rb
rhosync-2.1.0.beta.2 lib/rhosync/api/create_user.rb
rhosync-2.1.0.beta.1 lib/rhosync/api/create_user.rb
rhosync-2.0.9 lib/rhosync/api/create_user.rb
rhosync-2.0.8 lib/rhosync/api/create_user.rb
rhosync-2.0.7 lib/rhosync/api/create_user.rb
rhosync-2.0.6 lib/rhosync/api/create_user.rb
rhosync-2.0.5 lib/rhosync/api/create_user.rb
rhosync-2.0.4 lib/rhosync/api/create_user.rb