Top Level Namespace
Defined Under Namespace
Modules: CertstashCli
Instance Method Summary collapse
-
#fetch_csr_flags(command) ⇒ Object
env GLI_DEBUG=true certstash-cli gen_csr :t rwu1ee01-certificates, –item_name=rewards-ui-ee.cdc.gci.com, –common_name=rewards-ui-st.cdc.gci.com, –country=US, –state=OR, –locale=en-US, –organization=GCI, –organizational_unit=CD.
-
#fetch_pkey_flags(command) ⇒ Object
rubocop:disable Metrics/MethodLength, Metrics/AbcSize.
- #output_command_args(global_options, options, args) ⇒ Object
Instance Method Details
#fetch_csr_flags(command) ⇒ Object
env GLI_DEBUG=true certstash-cli gen_csr :t rwu1ee01-certificates, –item_name=rewards-ui-ee.cdc.gci.com, –common_name=rewards-ui-st.cdc.gci.com, –country=US, –state=OR, –locale=en-US, –organization=GCI, –organizational_unit=CD
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/certstash-cli/certstash_cli_helper.rb', line 15 def fetch_csr_flags(command) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize command.desc 'Vault Name' command.default_value nil command.flag [:t, :vault_name] command.desc 'Item Name' command.default_value nil command.flag [:i, :item_name] command.desc 'Common Name' command.default_value '' command.flag [:cn, :common_name] command.desc 'Country' command.default_value 'US' command.flag [:c, :country] command.desc 'State' command.default_value '' command.flag [:s, :state] command.desc 'Locale' command.default_value 'en-US' command.flag [:l, :locale] command.desc 'Organization' command.default_value '' command.flag [:o, :organization] command.desc 'Organizational Unit' command.default_value '' command.flag [:ou, :organizational_unit] command.desc 'San Names' command.default_value [] command.flag [:sn, :san], type: Array command end |
#fetch_pkey_flags(command) ⇒ Object
rubocop:disable Metrics/MethodLength, Metrics/AbcSize
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/certstash-cli/certstash_cli_helper.rb', line 55 def fetch_pkey_flags(command) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize command.desc 'Vault Name' command.default_value nil command.arg_name 'vault' command.flag [:t, :vault_name] command.desc 'Item Name' command.default_value nil command.arg_name 'item' command.flag [:i, :item_name] command.desc 'Admins' command.default_value '' command.arg_name 'admins' command.flag [:a, :admins], type: Array command.desc 'Query' command.default_value nil command.arg_name 'query' command.flag [:q, :query] command end |
#output_command_args(global_options, options, args) ⇒ Object
1 2 3 4 5 6 7 8 9 10 11 |
# File 'lib/certstash-cli/certstash_cli_helper.rb', line 1 def output_command_args(, , args) puts '*****************' puts 'gen_pkey command ran' puts 'args: ' ap args puts 'options: ' ap puts 'global_options: ' ap puts '*****************' end |