Sha256: ba47297e6bf19bca2486f3087b5d255440adcb4cef44749f2f3575dd3b45c1f0
Contents?: true
Size: 608 Bytes
Versions: 8
Compression:
Stored size: 608 Bytes
Contents
module Deis module Commands class Info < Struct.new :app include Helpers def run h = info(app) status "`#{app}` Information" output_hash h end def output_hash(hash, indent = 0) hash.each do |k, v| case v when Hash puts (' ' * indent) + k + ':' output_hash(v, indent + 1) when Array puts (' ' * indent) + k + ':', *v.map { |i| (' ' * (indent + 1)) + i.to_s } else puts (' ' * indent) + "#{k}: #{v}" end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems