Module: CSD::Application::Mslog

Extended by:
Default
Defined in:
lib/csd/application/mslog.rb,
lib/csd/application/mslog/base.rb

Overview

This module sets up MiniSIP logging server in the system.

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Methods included from Default

actions, default_options, description, human, instance, name, options, scopes

Class Method Details

.instanceObject

This method will check which system we’re on and initialize the correct sub-module. Currently we only support Ubuntu.



17
18
19
20
21
22
23
24
# File 'lib/csd/application/mslog.rb', line 17

def instance
  if Gem::Platform.local.ubuntu?
    UI.debug "#{self}.instance finishes the system check"
    Base.new
  else
    raise 'Sorry, currently only Ubuntu is supported.'
  end
end