Class: Conjur::Command::Policy
Class Method Summary
collapse
Methods inherited from DSLCommand
file_or_stdin_arg, run_script
acting_as_option, api, command, command_impl_for_list, command_options_for_list, display, display_members, hide_docs, method_missing, require_arg, retire_resource, retire_role
#conjur_account, #full_resource_id, #get_kind_and_id_from_args
Class Method Details
.default_collection_hostname ⇒ Object
32
33
34
|
# File 'lib/conjur/command/policy.rb', line 32
def default_collection_hostname
Socket.gethostname
end
|
.default_collection_name ⇒ Object
36
37
38
|
# File 'lib/conjur/command/policy.rb', line 36
def default_collection_name
[ default_collection_user, default_collection_hostname ].join('@')
end
|
.default_collection_user ⇒ Object
28
29
30
|
# File 'lib/conjur/command/policy.rb', line 28
def default_collection_user
Etc.getlogin
end
|