Class Dsadmin::Webfe::BackendInterface
In: lib/dsadmin/webfe/backend_interface.rb
Parent: Object

Little wrapper around Dsadmin::BackendInterface, adapted for the specific (limited) needs of the web frontend

Methods

be_host   be_port   call   proxy  

Included Modules

Dsadmin::CoreClient

Public Instance methods

[Source]

    # File lib/dsadmin/webfe/backend_interface.rb, line 28
28:   def call(controller, action, username, password, data = Hash.new)
29:     proxy.call_with_user(controller, action, username, password, data)
30:   end

Private Instance methods

[Source]

    # File lib/dsadmin/webfe/backend_interface.rb, line 39
39:   def be_host
40:     @@be_host ||= cfg.get('admind/host', String).strip
41:   end

[Source]

    # File lib/dsadmin/webfe/backend_interface.rb, line 43
43:   def be_port
44:     @@be_port ||= cfg.get('admind/port', Integer)
45:   end

[Source]

    # File lib/dsadmin/webfe/backend_interface.rb, line 35
35:   def proxy
36:     @proxy ||= Dsadmin::BackendInterface.new(be_host, be_port)
37:   end

[Validate]