Sha256: c42530f179942e675a8fa10e4138eee759dd8699b4bf94f637d19d51879f4d8b
Contents?: true
Size: 760 Bytes
Versions: 43
Compression:
Stored size: 760 Bytes
Contents
module Brightbox command [:images] do |cmd| cmd.default_command :list cmd.desc I18n.t("images.list.desc") cmd.arg_name "[image-id...]" cmd.command [:list] do |c| c.desc "Show all public images from all accounts" c.switch [:a, "show-all"], :negatable => false c.desc "Show only images of a given type" c.flag [:t, :type] c.desc "Show only images of a given status" c.flag [:s, :status] c.desc "Show only images for a given account identifier" c.flag [:l, :account] c.action do |global_options, options, args| images = Image.find_all_or_warn(args) images = Image.filter_images(images, options) render_table(images, global_options) end end end end
Version data entries
43 entries across 43 versions & 1 rubygems