class AwsAssumeRole::Cli::Actions::DeleteProfile
Constants
- CommandSchema
Public Instance Methods
act_on(config)
click to toggle source
# File lib/aws_assume_role/cli/actions/delete_profile.rb, line 11 def act_on(config) prompt_for_option(:name_to_delete, "Name", proc { eql? config.profile }, fmt: config.profile) AwsAssumeRole.shared_config.delete_profile config.profile out format t("commands.delete.completed"), config.profile rescue KeyError, Aws::Errors::NoSuchProfileError error format(t("errors.NoSuchProfileError"), config.profile) raise rescue Aws::Errors::MissingCredentialsError error t("errors.MissingCredentialsError") raise end