Sha256: 1275e748390ad5c1533e47d99114b926e879bc32a8025829cab74ffcb8641db2
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
class Cambium < Oxidized::Model using Refinements 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.gsub! /"cfgUtcTimestamp":.*?,\n/, '' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.31.0 | lib/oxidized/model/cambium.rb |
oxidized-0.30.1 | lib/oxidized/model/cambium.rb |
oxidized-0.30.0 | lib/oxidized/model/cambium.rb |
oxidized-0.29.1 | lib/oxidized/model/cambium.rb |