Class: PuavoRest::UnregisteredDevice

Inherits:
Host show all
Defined in:
resources/boot_configurations.rb

Constant Summary

Constant Summary

Constants inherited from LdapModel

LdapModel::ESCAPES, LdapModel::ESCAPE_RE, LdapModel::KRB_LOCK, LdapModel::PROF

Instance Attribute Summary

Attributes inherited from LdapModel

#ldap_attr_store, #serialize_attrs

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Host

#boot_duration, by_hostname!, by_mac_address!, #grub_boot_configuration, #grub_configuration, #grub_header, #grub_kernel_arguments, #grub_kernel_version, #grub_type, #instance_key, #localboot?, #netboot?, #organisation, #preferred_boot_image, #save_boot_time, specialized_instance!

Methods included from LocalStore

close_connection, included, #local_store, #local_store_del, #local_store_expire, #local_store_get, #local_store_set

Methods inherited from LdapModel

#[], #[]=, _class_store, #add, #add_validation_error, after, all, #as_json, #assert_validation, base_filter, before, by_attr, by_attr!, by_dn, by_dn!, by_dn_array, by_id, by_id!, by_ldap_attr, by_ldap_attr!, callable_from_instance, #changed?, class_store, clear_setup, computed_attr, connection, #create!, create_connection, create_filter_lambda, #dirty?, dn_bind, #empty?, escape, filter, from_ldap_hash, #get_own, #get_raw, inherited, #initialize, is_dn, is_not_found?, ldap_attrs, ldap_map, #ldap_merge!, ldap_op, #ldap_set, #link, #merge, #new?, #object_model, organisation, organisation?, pretty_attrs_to_ldap, raw_by_dn, raw_filter, sasl_bind, #save!, search, search_filters, #set, settings, settings=, setup, skip_serialize, #to_hash, #to_json, #to_ldap_hash, #transform, #update!, #validate, #validate!, #validate_unique, #write_raw

Constructor Details

This class inherits a constructor from LdapModel

Class Method Details

+ (Object) ldap_base



6
7
8
# File 'resources/boot_configurations.rb', line 6

def self.ldap_base
  raise "Cannot use ldap methods on unregistered devices"
end

Instance Method Details

- (Object) preferred_image



10
11
12
# File 'resources/boot_configurations.rb', line 10

def preferred_image
  BootServer.current_image || Organisation.current(:no_cache).preferred_image
end