Sha256: bc03d745176a4c2c2f3d4386f65957ad6e6246c7973b642cbc90d817f20794b4

Contents?: true

Size: 1.48 KB

Versions: 43

Compression:

Stored size: 1.48 KB

Contents

# frozen_string_literal: true

require_relative "../actions/set_environment"
require_relative "../actions/reset_environment"

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

        desc t "commands.reset_environment.desc"
        long_desc t "commands.reset_environment.long_desc"
        c.command :reset do |s|
            s.action do |global_options, options, args|
                AwsAssumeRole::Cli::Actions::ResetEnvironment.new(global_options, options, args)
            end
        end
    end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
aws_assume_role-1.2.3-universal-freebsd lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.3-universal-darwin lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.3-universal-linux lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.3-universal-openbsd lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.3 lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.3-linux lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.2-universal-darwin lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.2-universal-linux lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.2-linux lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.2-universal-openbsd lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.2-universal-freebsd lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.2 lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.1 lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.1-linux lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.1-universal-openbsd lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.1-universal-darwin lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.1-universal-freebsd lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.1-universal-linux lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.0 lib/aws_assume_role/cli/commands/environment.rb
aws_assume_role-1.2.0-linux lib/aws_assume_role/cli/commands/environment.rb