Sha256: 4f78cfd34926ae4fe89352d3f74d5f020fdb664a60091dcc219ca9b0fec3274c
Contents?: true
Size: 576 Bytes
Versions: 9
Compression:
Stored size: 576 Bytes
Contents
class Cambium < Oxidized::Model cfg_cb = lambda do c_page = @m.click @m_page.link_with(text: "Configuration") u_page = @m.click c_page.link_with(text: "Unit Settings") cfg = @m.click u_page.link_with(text: /\.cfg$/) cfg.body end cmd cfg_cb do |cfg| cfg end cfg :http do @main_page = "/main.cgi" define_singleton_method :login do @m_page = @m_page.form_with(action: "login.cgi") do |form| form.CanopyUsername = @node.auth[:username] form.CanopyPassword = @node.auth[:password] end.submit end end end
Version data entries
9 entries across 9 versions & 1 rubygems