Sha256: 3bf344339c1e6d4d0976b485426e628777d2a5e0852dc1153de9bce6dc5ef332
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
require_relative "../actions/configure_profile" require_relative "../actions/configure_role_assumption" module AwsAssumeRole::Cli desc t "commands.configure.desc" long_desc t "commands.configure.long_desc" command :configure do |c| c.flag [:p, "profile"], desc: t("options.profile_name") c.action do |global_options, options, args| AwsAssumeRole::Cli::Actions::ConfigureProfile.new(global_options, options, args) end c.desc t "commands.configure.desc" c.long_desc t "commands.configure.long_desc" c.command :role do |r| r.flag ["source-profile"], desc: t("options.source_profile") r.flag ["role-session-name"], desc: t("options.role_session_name") r.flag ["role-arn"], desc: t("options.role_arn") r.flag ["mfa-serial"], desc: t("options.mfa_serial") r.flag ["region"], desc: t("options.region") r.flag ["external-id"], desc: t("options.external_id") r.flag ["duration-seconds"], desc: t("options.duration_seconds"), default_value: 3600 r.flag ["yubikey-oath-name"], desc: t("options.yubikey_oath_name") r.action do |global_options, options, args| AwsAssumeRole::Cli::Actions::ConfigureRoleAssumption.new(global_options, options, args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws_assume_role-0.2.2 | lib/aws_assume_role/cli/commands/configure.rb |
aws_assume_role-0.2.0 | lib/aws_assume_role/cli/commands/configure.rb |