HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings/alias_setting.rb
class Puppet::Settings::AliasSetting
  attr_reader :name, :alias_name

  def initialize(args = {})
    @name = args[:name]
    @alias_name = args[:alias_for]
    @alias_for = Puppet.settings.setting(alias_name)
  end

  def optparse_args
    args = @alias_for.optparse_args
    args[0].gsub!(alias_name.to_s, name.to_s)
    args
  end

  def getopt_args
    args = @alias_for.getopt_args
    args[0].gsub!(alias_name.to_s, name.to_s)
    args
  end

  def type
    :alias
  end

  def method_missing(method, *args)
    begin
      alias_for.send(method, *args)
    rescue => e
      Puppet.log_exception(self.class, e.message)
    end
  end

  private

  attr_reader :alias_for
end