summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriantgroove.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/coriantgroove.rb')
-rw-r--r--lib/oxidized/model/coriantgroove.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/oxidized/model/coriantgroove.rb b/lib/oxidized/model/coriantgroove.rb
index 4972eb7..22cf7a1 100644
--- a/lib/oxidized/model/coriantgroove.rb
+++ b/lib/oxidized/model/coriantgroove.rb
@@ -8,17 +8,15 @@ class CoriantGroove < Oxidized::Model
end
cmd 'show inventory' do |cfg|
- cfg = cfg.each_line.to_a[0..-2].join
- comment cfg
+ comment cfg.cut_tail
end
cmd 'show softwareload' do |cfg|
- cfg = cfg.each_line.to_a[0..-2].join
- comment cfg
+ comment cfg.cut_tail
end
cmd 'show config | display commands' do |cfg|
- cfg.each_line.to_a[1..-1].join
+ cfg.cut_head
end
cfg :ssh do