Sha256: 142e6d37fea9bc97a0d52c04385c89c97724e09312d2e193f48614151adbeeb1
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
#!/usr/bin/env ruby # Please refer to the configuration documentation for instructions on how to run this gem # Do NOT run this gem without proper pre-configuration. require 'nexpose_thycotic' require 'nexpose_thycotic/utilities/config_parser.rb' require 'nexpose_thycotic/utilities/gem_options' CONFIG_PATH = File.join(File.dirname(__FILE__), '../lib/nexpose_thycotic/config/nexpose_thycotic.config') config_path = File.expand_path(CONFIG_PATH) # Setup CLI Options GemOptions.create_parser .with_banner_and_options('nexpose_thycotic') .with_configuration_encryption([config_path]) .with_help_and_version('Nexpose Thycotic', NexposeThycotic::VERSION) .parse settings = ConfigParser.get_config(config_path) thycotic_options = NexposeThycotic.set_variables(settings[:thycotic_options]) nexpose_options = NexposeThycotic.set_variables(settings[:nexpose_options]) options = settings[:options] vault_options = { url: thycotic_options[:thycotic_url], username: thycotic_options[:thycotic_username], password: thycotic_options[:thycotic_password], comment: thycotic_options[:comment] } nexpose_options = { nexpose_ip: nexpose_options[:nexpose_url], nexpose_username: nexpose_options[:nexpose_username], nexpose_password: nexpose_options[:nexpose_password], nexpose_port: nexpose_options[:nexpose_port], sites: options[:sites], clear_creds: options[:clear_creds], logging_enabled: options[:logging_enabled], log_level: options[:log_level], log_console: options[:log_console] } NexposeThycotic.update_credentials(vault_options, nexpose_options)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nexpose_thycotic-0.2.0 | bin/nexpose_thycotic |