Sha256: 8e6ccd05d3a23868db1b2316841cfdda86d43a9ee51415a7913f6b68b386677e
Contents?: true
Size: 731 Bytes
Versions: 28
Compression:
Stored size: 731 Bytes
Contents
module Brightbox command [:config] do |cmd| cmd.desc I18n.t("config.client_default.desc") cmd.arg_name "alias" cmd.command [:client_default] do |c| c.action do |_global_options, _options, args| info "Using config file #{Brightbox.config.config_filename}" calias = args.shift if calias.nil? raise "You must specify the api alias you want to set as the default" end if Brightbox.config.client_named?(calias) info "Setting #{calias} as default api client" Brightbox.config.set_default_client(calias) else raise "An api client with the alias #{calias} does not exist in the config" end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems