summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/planet.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/planet.rb')
-rw-r--r--lib/oxidized/model/planet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/planet.rb b/lib/oxidized/model/planet.rb
index 56e688c..045bd31 100644
--- a/lib/oxidized/model/planet.rb
+++ b/lib/oxidized/model/planet.rb
@@ -18,7 +18,7 @@ class Planet < Oxidized::Model
cmd :all do |cfg|
# cfg.gsub! /\cH+\s{8}/, '' # example how to handle pager
# cfg.gsub! /\cH+/, '' # example how to handle pager
- cfg.each_line.to_a[1..-2].join
+ cfg.cut_both
end
cmd :secret do |cfg|