summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason Wendel <wendelj@gmail.com>2017-02-04 20:13:35 -0600
committerJason Wendel <wendelj@gmail.com>2017-02-04 20:13:35 -0600
commitb6affdfc6ee0b142f5a7b7f01854909babb80b23 (patch)
tree1ae8887797c8a66142738adb0950c6d547c77391 /lib
parentb8fdd1c5d752a0f27a9a4ccab429ba6393450ccd (diff)
Cleaner way to fix older IronWare devices
This works on older IronWare devices without needing a sleep between each command.
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/ironware.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb
index bfcd3a4..c7c2197 100644
--- a/lib/oxidized/model/ironware.rb
+++ b/lib/oxidized/model/ironware.rb
@@ -81,13 +81,7 @@ class IronWare < Oxidized::Model
post_login ''
post_login 'skip-page-display'
post_login 'terminal length 0'
- pre_logout do
- send "logout\n"
- sleep 0.01
- send "exit\n"
- sleep 0.01
- send "exit\n"
- end
+ pre_logout "logout\nexit\nexit\n"
end
end