class AwsAssumeRole::Cli::Actions::MigrateProfile

Constants

CommandSchema

Public Instance Methods

act_on(config) click to toggle source
# File lib/aws_assume_role/cli/actions/migrate_profile.rb, line 10
def act_on(config)
    AwsAssumeRole.shared_config.migrate_profile config.profile
    out format(t("commands.configure.saved"), config[:profile], AwsAssumeRole.shared_config.config_path)
rescue KeyError, Aws::Errors::NoSuchProfileError
    error format(t("errors.NoSuchProfileError"), config.profile)
    raise
rescue Aws::Errors::MissingCredentialsError
    error t("errors.MissingCredentialsError")
    raise
end