diff options
author | Saku Ytti <saku@ytti.fi> | 2016-08-22 16:52:03 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2016-08-22 16:52:03 +0300 |
commit | dade4b939ce4a3326edfa51665f6ec8a92d27716 (patch) | |
tree | ae6daac3d4c8870e5100085341fa6e5df8bcbd31 /lib/oxidized/pfsense.rb | |
parent | 8ef086796a22914dcc52febb4dfc84df56e05438 (diff) |
move pfsense to correct directory
Diffstat (limited to 'lib/oxidized/pfsense.rb')
-rw-r--r-- | lib/oxidized/pfsense.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/oxidized/pfsense.rb b/lib/oxidized/pfsense.rb deleted file mode 100644 index cd6885c..0000000 --- a/lib/oxidized/pfsense.rb +++ /dev/null @@ -1,25 +0,0 @@ -class PfSense < Oxidized::Model - - comment '# ' - - #add a comment in the final conf - def add_comment comment - "\n###### #{comment} ######\n" - end - - cmd :all do |cfg| - cfg.each_line.to_a[1..-2].join - end - - #show the persistent configuration - pre do - cfg = add_comment 'Configuration' - cfg += cmd 'cat /cf/conf/config.xml' - end - - cfg :ssh do - exec true - pre_logout 'exit' - end - -end |