Class: Puppet::Provider::KatelloSslTool::CertFile
- Inherits:
-
Puppet::Provider
- Object
- Puppet::Provider
- Puppet::Provider::KatelloSslTool::CertFile
- Defined in:
- lib/puppet/provider/katello_ssl_tool.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
185 186 187 |
# File 'lib/puppet/provider/katello_ssl_tool.rb', line 185 def create File.open(resource[:path], "w", mode) { |f| f << expected_content_processed } end |
#destroy ⇒ Object
189 190 191 |
# File 'lib/puppet/provider/katello_ssl_tool.rb', line 189 def destroy FileUtils.rm_f(resource[:path]) end |
#exists? ⇒ Boolean
179 180 181 182 183 |
# File 'lib/puppet/provider/katello_ssl_tool.rb', line 179 def exists? return false unless File.exist?(resource[:path]) return false unless File.exist?(source_path) expected_content_processed == current_content end |