Class: HttpdConfigmapGenerator::Export
- Defined in:
- lib/httpd_configmap_generator/export.rb
Constant Summary
Constants inherited from Base
Base::APACHE_USER, Base::HTTP_KEYTAB, Base::IPA_COMMAND, Base::KERBEROS_CONFIG_FILE, Base::LDAP_ATTRS, Base::PAM_CONFIG, Base::SSSD_CONFIG, Base::TIMESTAMP_FORMAT
Constants included from Base::Network
Base::Network::HOSTNAME_COMMAND
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#debug_msg, #err_msg, #info_msg, #initialize, #optional_options, #run_configure
Methods included from Base::Pam
Methods included from Base::Network
#domain, #domain_from_host, #fetch_network_file, #host_reachable?, #realm, #update_hostname
Methods included from Base::Kerberos
Methods included from Base::FileHelper
#cp_template, #create_target_directory, #delete_target_file, #file_binary?, #path_join, #rm_file, #template_directory
Methods included from Base::ConfigHelper
Methods included from Base::Command
#command_run, #command_run!, #log_command_error
Constructor Details
This class inherits a constructor from HttpdConfigmapGenerator::Base
Instance Method Details
#export(opts) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/httpd_configmap_generator/export.rb', line 14 def export(opts) (opts) @opts = opts config_map = ConfigMap.new(opts) config_map.load(opts[:input]) config_map.export_file(opts[:file], opts[:output]) rescue => err log_command_error(err) raise err end |
#required_options ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/httpd_configmap_generator/export.rb', line 3 def { :input => { :description => "Input config map file", :short => "-i" }, :file => { :description => "Config map file to export", :short => "-l" }, :output => { :description => "The output file being exported", :short => "-o" } } end |