module Shells::PfSenseCommon
Common functionality for interacting with a pfSense device.
Constants
- BASE_SHELL
The base shell used when possible.
- MENU_PROMPT
The prompt text for the main menu.
Attributes
pf_sense_host[RW]
Gets the hostname of the pfSense device.
pf_sense_user[RW]
Gets the user currently logged into the pfSense device.
pf_sense_version[RW]
Gets the version of the pfSense firmware.
Public Instance Methods
line_ending()
click to toggle source
# File lib/shells/pf_sense_common.rb, line 113 def line_ending @line_ending ||= "\n" end
pf_shell(&block)
click to toggle source
Executes the code block in the pfSense PHP shell.
# File lib/shells/pf_sense_common.rb, line 161 def pf_shell(&block) ::Shells::PfShellWrapper.new(self, &block).output end