Sha256: 28ecf33a096de589f77a71401cb922491a35e4bb4bbd706164478e2139851fa3
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 Bytes
Contents
class SpeedTouch < Oxidized::Model using Refinements prompt /([\w{}=]+[>])$/ comment '! ' expect /login$/ do send "\n" "" end cmd ':env list' do |cfg| cfg.each_line.select do |line| (not line.match /:env list$/) && (not line.match /{\w+}=>$/) end.join comment cfg end cmd ':config dump' do |cfg| cfg.each_line.select do |line| (not line.match /:config dump$/) && (not line.match /{\w+}=>$/) end.join cfg end cfg :telnet do username /^Username : / password /^Password : / end cfg :telnet do pre_logout 'exit' end end
Version data entries
4 entries across 4 versions & 1 rubygems