Sha256: ade477894c9cad2b4dd3f37cc2bf283cbf30c4a8ec369e892dda8cb99970a9fc

Contents?: true

Size: 368 Bytes

Versions: 4

Compression:

Stored size: 368 Bytes

Contents

class Airfiber < Oxidized::Model
  using Refinements

  # Ubiquiti Airfiber (tested with Airfiber 11FX)

  prompt /^AF[\w\.-]+#/i

  cmd :all do |cfg|
    cfg.cut_both
  end

  pre do
    cmd 'cat /tmp/system.cfg'
  end

  cfg :telnet do
    username /^[\w\W]+\slogin:\s$/
    password /^[p:P]assword:\s$/
  end

  cfg :telnet, :ssh do
    pre_logout 'exit'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oxidized-0.31.0 lib/oxidized/model/airfiber.rb
oxidized-0.30.1 lib/oxidized/model/airfiber.rb
oxidized-0.30.0 lib/oxidized/model/airfiber.rb
oxidized-0.29.1 lib/oxidized/model/airfiber.rb