Sha256: 316ad79c11a891b6d3cbae401e9a2e0b9be942be4e33ac4a24e975c457b3e6a7
Contents?: true
Size: 1.81 KB
Versions: 17
Compression:
Stored size: 1.81 KB
Contents
module Brightbox desc I18n.t("sql.desc") command [:sql] do |product| product.desc I18n.t("sql.instances.desc") product.command [:instances] do |cmd| cmd.desc I18n.t("sql.instances.create.desc") cmd.command [:create] do |c| c.desc I18n.t("options.name.desc") c.flag %i[n name] c.desc I18n.t("options.description.desc") c.flag [:d, "description"] c.desc I18n.t("sql.instances.options.allow_access.desc") c.flag [:"allow-access"] # Database type c.desc I18n.t("sql.instances.options.type.desc") c.flag %i[t type] # Database Engine / Version (e.g. "mysql-5.6" c.desc I18n.t("sql.instances.options.engine.desc") c.flag [:engine] c.desc I18n.t("sql.instances.options.engine_version.desc") c.flag ["engine-version"] # Maintenance window options c.desc I18n.t("sql.instances.options.maintenance_weekday.desc") c.flag ["maintenance-weekday"] c.desc I18n.t("sql.instances.options.maintenance_hour.desc") c.flag ["maintenance-hour"] # Snapshots schedule c.desc I18n.t("sql.instances.options.snapshots_schedule.desc") c.flag [:"snapshots-schedule"] # Snapshot c.desc I18n.t("sql.instances.options.snapshot.desc") c.flag [:snapshot] # Zone c.desc I18n.t("sql.instances.options.zone.desc") c.flag [:z, "zone"] c.action do |global_options, options, _args| params = DatabaseServer.clean_arguments(options) server = DatabaseServer.create(params) table_options = global_options.merge( :vertical => true, :fields => DatabaseServer.detailed_fields ) render_table([server], table_options) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems