Class: MnoEnterprise::Router

Inherits:
Object
  • Object
show all
Defined in:
lib/mno_enterprise/core.rb

Overview

MnoEnterprise Router Centralizes all URLs available on the Maestrano Enterprise side

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_sign_out_urlObject

Customise after_sign_out url



46
47
48
# File 'lib/mno_enterprise/core.rb', line 46

def after_sign_out_url
  @after_sign_out_url
end

#dashboard_pathObject

Returns the value of attribute dashboard_path.



48
49
50
# File 'lib/mno_enterprise/core.rb', line 48

def dashboard_path
  @dashboard_path
end

#terms_urlObject

Returns the value of attribute terms_url.



43
44
45
# File 'lib/mno_enterprise/core.rb', line 43

def terms_url
  @terms_url
end

Instance Method Details

#admin_pathObject



58
59
60
# File 'lib/mno_enterprise/core.rb', line 58

def admin_path
  @admin_path || '/admin/'
end

#authorize_oauth_url(id, opts = {}) ⇒ Object



66
67
68
# File 'lib/mno_enterprise/core.rb', line 66

def authorize_oauth_url(id,opts = {})
  host_url("/oauth/#{id}/authorize",opts)
end

#disconnect_oauth_url(id, opts = {}) ⇒ Object



70
71
72
# File 'lib/mno_enterprise/core.rb', line 70

def disconnect_oauth_url(id,opts = {})
  host_url("/oauth/#{id}/disconnect",opts)
end

#impac_root_urlObject

Deprecated.

Impac is now configured through Settings



79
80
81
82
# File 'lib/mno_enterprise/core.rb', line 79

def impac_root_url
  warn '[DEPRECATION] `impac_root_url` is deprecated. Impac is now configured in the frontend through `Settings`.'
  URI.join(MnoEnterprise.impac_api_host,MnoEnterprise.impac_api_root_path)
end

#launch_url(id, opts = {}) ⇒ Object



62
63
64
# File 'lib/mno_enterprise/core.rb', line 62

def launch_url(id,opts = {})
  host_url("/launch/#{id}",opts)
end

#sync_oauth_url(id, opts = {}) ⇒ Object



74
75
76
# File 'lib/mno_enterprise/core.rb', line 74

def sync_oauth_url(id,opts = {})
  host_url("/oauth/#{id}/sync",opts)
end