Module: Mikrotik

Defined in:
lib/mikrotik.rb,
lib/mikrotik/version.rb

Overview

TODO : Allow underscores to be used instead of dashes in command paths and properties - e.g. in dhcp-server and mac-address

Defined Under Namespace

Modules: Client, Connection, Errors, Protocol Classes: Command

Constant Summary

VERSION =
"0.0.1"

Class Method Summary (collapse)

Class Method Details

+ (Mikrotik::Client) connect(*args)

Shorthand for Mikrotik::Client.connect

Returns:



23
24
25
# File 'lib/mikrotik.rb', line 23

def self.connect(*args)
  Client.connect(*args)
end

+ (Object) debug(message)

Prints message if debugging is enabled

Parameters:

  • message (Array<String>)

    Parts of the message



17
18
19
# File 'lib/mikrotik.rb', line 17

def self.debug(message)
  puts message.join(' ') if debugging
end

+ (Boolean) debugging

Returns Whether debugging prints are enabled or not

Returns:

  • (Boolean)

    Whether debugging prints are enabled or not



11
12
13
# File 'lib/mikrotik.rb', line 11

def self.debugging
  false
end