Module: HybridPlatformsConductor::Thycotic
- Includes:
- Credentials
- Included in:
- HpcPlugins::SecretsReader::Thycotic
- Defined in:
- lib/hybrid_platforms_conductor/thycotic.rb
Overview
Mixin giving ways to query the Thycotic SOAP API at a given URL
Defined Under Namespace
Classes: ThycoticApi
Instance Method Summary collapse
-
#with_thycotic(thycotic_url, domain: ENV['hpc_domain_for_thycotic']) ⇒ Object
Provide a Thycotic connector, and make sure the password is being cleaned when exiting.
Methods included from Credentials
Instance Method Details
#with_thycotic(thycotic_url, domain: ENV['hpc_domain_for_thycotic']) ⇒ Object
Provide a Thycotic connector, and make sure the password is being cleaned when exiting.
- Parameters
-
thycotic_url (String): The Thycotic URL
-
domain (String): Domain to use for authentication to Thycotic [default: ENV]
-
Proc: Code called with the Thyctotic instance.
-
thycotic (ThyctoticApi): The Thycotic instance to use.
-
20 21 22 23 24 |
# File 'lib/hybrid_platforms_conductor/thycotic.rb', line 20 def with_thycotic(thycotic_url, domain: ENV['hpc_domain_for_thycotic']) with_credentials_for(:thycotic, resource: thycotic_url) do |thycotic_user, thycotic_password| yield ThycoticApi.new(thycotic_url, thycotic_user, thycotic_password, domain: domain, logger: @logger, logger_stderr: @logger_stderr) end end |