Sha256: 790e88f58931d5df9c6c440f60e9a87fa370aaeba4b5b90b73fc4e57521088a8
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
module Brightbox command [:volumes] do |cmd| cmd.desc I18n.t("volumes.show.desc") cmd.arg_name I18n.t("volumes.args.optional") cmd.command [:show] do |c| c.action do |global_options, _options, args| raise "You must specify volume IDs to show" if args.empty? volumes = Volume.find_or_call(args) do |id| raise "Couldn't find a volume with ID #{id}" end table_opts = global_options.merge( :vertical => true, :fields => Volume.detailed_fields ) render_table(volumes, table_opts) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brightbox-cli-5.0.0 | lib/brightbox-cli/commands/volumes/show.rb |
brightbox-cli-5.0.0.rc2 | lib/brightbox-cli/commands/volumes/show.rb |