Class: Puppet::Provider::MysqlLoginPath::Sensitive

Inherits:
Puppet::Pops::Types::PSensitiveType::Sensitive
  • Object
show all
Defined in:
lib/puppet/provider/mysql_login_path/sensitive.rb

Overview

A Puppet Language type that makes the Sensitive Type comparable

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



6
7
8
# File 'lib/puppet/provider/mysql_login_path/sensitive.rb', line 6

def ==(other)
  return true if other.is_a?(Puppet::Pops::Types::PSensitiveType::Sensitive) && unwrap == other.unwrap
end

#encode_with(coder) ⇒ Object



10
11
12
13
# File 'lib/puppet/provider/mysql_login_path/sensitive.rb', line 10

def encode_with(coder)
  coder.tag = nil
  coder.scalar = 'Puppet::Provider::MysqlLoginPath::Sensitive <<encrypted>>'
end