Class: Conjur::Command::Policy
Class Method Summary
collapse
Methods inherited from DSLCommand
file_or_stdin_arg, run_script
acting_as_option, api, command, display, method_missing, require_arg
#conjur_account, #full_resource_id, #get_kind_and_id_from_args
Class Method Details
.default_collection_hostname ⇒ Object
31
32
33
|
# File 'lib/conjur/command/policy.rb', line 31
def default_collection_hostname
( ENV['HOSTNAME'] || `hostname` ).strip
end
|
.default_collection_name ⇒ Object
35
36
37
|
# File 'lib/conjur/command/policy.rb', line 35
def default_collection_name
[ default_collection_user, default_collection_hostname ].join('@')
end
|
.default_collection_user ⇒ Object
27
28
29
|
# File 'lib/conjur/command/policy.rb', line 27
def default_collection_user
( ENV['USER'] ).strip
end
|