lib/clouddns/actions/print.rb in clouddns-0.0.2 vs lib/clouddns/actions/print.rb in clouddns-0.0.3

- old
+ new

@@ -1,21 +1,18 @@ -require 'clouddns/actions/print_record' module Clouddns module Actions class Print < GenericAction - include PrintRecord - def run print_all end protected def print_all puts "Zone '#{@zone.name}'" namelength = @zone.records.map{ |x| x.name.length }.max @zone.records.each do |record| - print_record record, namelength + puts Utils::format_record record, :namelength => namelength end end end end end