7
8
9
10
11
12
13
14
|
# File 'lib/vulpix/cli.rb', line 7
def network
nw = Vulpix.nwinfo
data_length = nw.map(&:values).flatten.max_by(&:length)
nw.each do |item|
printf "%-6s %-#{data_length.length}s :: %s\n", item[:name], item[:name_info], item[:addr]
end
end
|