Sha256: 36976c5aa6d0aa61aab1ac47c4ec77b21e553d3593bea04021fced15ac893795
Contents?: true
Size: 746 Bytes
Versions: 4
Compression:
Stored size: 746 Bytes
Contents
module Brightbox desc 'Show detailed image info' arg_name 'image-id...' command [:show] do |c| c.action do |global_options,options,args| if args.empty? raise "You must specify the images you want to show" end images = Image.find_or_call(args) do |id| warn "Couldn't find image #{id}" end table_opts = global_options.merge({ :vertical => true, :fields => [:id, :type, :owner, :created_at, :status, :arch, :name, :description, :virtual_size, :disk_size, "compatibility_mode", :official, :ancestor_id ] }) render_table(images, table_opts) end end end
Version data entries
4 entries across 4 versions & 2 rubygems