Skip to content

Commit

Permalink
Merge pull request #28 from joshcooper/HC-46-confine-by-provider-feature
Browse files Browse the repository at this point in the history
(HC-46) Confine provider based on hocon feature
  • Loading branch information
Preben Ingvaldsen committed Feb 10, 2016
2 parents 7c49628 + 36c593e commit 46bd9af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 6 additions & 1 deletion lib/puppet/feature/hocon.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
require 'puppet/util/feature'

Puppet.features.add(:hocon, :libs => ['hocon'])
libs = ['hocon',
'hocon/config_factory',
'hocon/config_value_factory',
'hocon/parser/config_document_factory'
]

Puppet.features.add(:hocon, :libs => libs)
9 changes: 2 additions & 7 deletions lib/puppet/provider/hocon_setting/ruby.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
require 'puppet/util/feature'
if Puppet.features.hocon?
require 'hocon/config_factory'
require 'hocon/parser/config_document_factory'
require 'hocon/config_value_factory'
end

Puppet::Type.type(:hocon_setting).provide(:ruby) do
confine :feature => :hocon

def self.namevar(section_name, setting)
"#{setting}"
end
Expand Down

0 comments on commit 46bd9af

Please sign in to comment.