Sha256: f7836da9e0a808f03edd1071cc56e82422cf957e7e00ae34a9102d612053ad1b

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

module Fog
  module Cloudian
    class Admin
      class Real
        def create_user(user_name, group_name, user_type='User')
          request(:put, 'user', { userId: user_name,
                                  groupId: group_name,
                                  userType: user_type })
          # this returns a "user object" as JSON
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-cloudian-0.1.0 lib/fog/cloudian/requests/admin/create_user.rb