Sha256: 8f0543063fa31ced9d10bdf4aa5dfe3843dbefa5389909ab0738c23950986ef4

Contents?: true

Size: 739 Bytes

Versions: 5

Compression:

Stored size: 739 Bytes

Contents

require_relative "../actions/run"

module AwsAssumeRole::Cli
    desc t "commands.run.desc"
    command :run do |c|
        c.flag [:p, "profile"], desc: t("options.profile_name")
        c.flag ["role-session-name"], desc: t("options.role_session_name")
        c.flag ["role-arn"], desc: t("options.role_arn")
        c.flag ["mfa-serial"], desc: t("options.mfa_serial")
        c.flag ["region"], desc: t("options.region")
        c.flag ["external-id"], desc: t("options.external_id")
        c.flag ["duration-seconds"], desc: t("options.duration_seconds"), default_value: 3600
        c.action do |global_options, options, args|
            AwsAssumeRole::Cli::Actions::Run.new(global_options, options, args)
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aws_assume_role-0.2.2 lib/aws_assume_role/cli/commands/run.rb
aws_assume_role-0.2.0 lib/aws_assume_role/cli/commands/run.rb
aws_assume_role-0.1.2 lib/aws_assume_role/cli/commands/run.rb
aws_assume_role-0.1.1 lib/aws_assume_role/cli/commands/run.rb
aws_assume_role-0.1.0 lib/aws_assume_role/cli/commands/run.rb