Sha256: 5654fdb5966eb02240b4d2bc2ffba8e1a045f38211590d8b593bb9068aa57979

Contents?: true

Size: 834 Bytes

Versions: 5

Compression:

Stored size: 834 Bytes

Contents

require_relative "../actions/test"

module AwsAssumeRole::Cli
    desc t "commands.test.desc"
    command :test 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.switch ["no-profile"], desc: t("options.duration_seconds"), default_value: false
        c.action do |global_options, options, args|
            AwsAssumeRole::Cli::Actions::Test.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/test.rb
aws_assume_role-0.2.0 lib/aws_assume_role/cli/commands/test.rb
aws_assume_role-0.1.2 lib/aws_assume_role/cli/commands/test.rb
aws_assume_role-0.1.1 lib/aws_assume_role/cli/commands/test.rb
aws_assume_role-0.1.0 lib/aws_assume_role/cli/commands/test.rb