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

.connect(*args) ⇒ Mikrotik::Client

Shorthand for Mikrotik::Client.connect



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

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

.debug(message) ⇒ Object

Prints message if debugging is enabled



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

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

.debuggingBoolean



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

def self.debugging
  false
end