Method: Rbeapi::Api::System#set_banner
- Defined in:
- lib/rbeapi/api/system.rb
#set_banner(banner_type, opts = {}) ⇒ Boolean
Configures system banners.
213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/rbeapi/api/system.rb', line 213 def (, opts = {}) value = opts[:value] cmd_string = "banner #{banner_type}" if value value += "\n" if value[-1, 1] != "\n" cmd = [{ cmd: cmd_string, input: value }] else cmd = command_builder(cmd_string, opts) end configure(cmd) end |