summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-02-05 15:18:07 +0200
committerGitHub <noreply@github.com>2017-02-05 15:18:07 +0200
commitb74e638066e0f0efeeb27042b8c0fde9839e721c (patch)
tree1ae8887797c8a66142738adb0950c6d547c77391
parenta2c727de033e9c5b837e327dfa5c3328ae89793e (diff)
parentb6affdfc6ee0b142f5a7b7f01854909babb80b23 (diff)
Merge pull request #694 from wendelj/master
Cleaner way to fix older IronWare devices
-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