Sha256: 0fa87f1b5360a85ada875d23bbde4fa1f911dc37709932ef536695c64156e16c
Contents?: true
Size: 816 Bytes
Versions: 39
Compression:
Stored size: 816 Bytes
Contents
module Brightbox command [:sql] do |product| product.command [:snapshots] do |cmd| cmd.desc I18n.t("sql.snapshots.show.desc") cmd.arg_name "[snapshot-id...]" cmd.command [:show] do |c| c.action do |global_options, _options, args| raise "You must specify snapshot ids to show" if args.empty? servers = DatabaseSnapshot.find_or_call(args) do |id| raise "Couldn't find snapshot #{id}" end table_opts = global_options.merge( :vertical => true, :fields => [ :id, :name, :description, :status, :locked, :created_on ] ) render_table(servers, table_opts) end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems