Class: Openbsd

Inherits:
Oxidized::Model show all
Defined in:
lib/oxidized/model/openbsd.rb

Instance Attribute Summary

Attributes inherited from Oxidized::Model

#input, #node

Instance Method Summary collapse

Methods inherited from Oxidized::Model

cfg, #cfg, cfgs, cmd, #cmd, cmds, comment, #comment, expect, #expect, expects, #expects, #get, inherited, #output, post, pre, prompt, #prompt, #screenscrape, #send

Methods included from Oxidized::Config::Vars

#vars

Instance Method Details

#add_comment(comment) ⇒ Object

Add a comment between files/configs



10
11
12
# File 'lib/oxidized/model/openbsd.rb', line 10

def add_comment(comment)
  "\n+++++++++++++++++++++++++++++++++++++++++ #{comment} ++++++++++++++++++++++++++++++++++++++++++++++\n"
end

#add_small_comment(comment) ⇒ Object



14
15
16
# File 'lib/oxidized/model/openbsd.rb', line 14

def add_small_comment(comment)
  "\n=============== #{comment} ===============\n"
end