blob: 1649336f367219bb769334f84c9682edec3566ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'puppet/provider/confine_collection'
module Puppet::Provider::Confiner
def confine(hash)
confine_collection.confine(hash)
end
def confine_collection
@confine_collection = Puppet::Provider::ConfineCollection.new(self.to_s) unless defined?(@confine_collection)
@confine_collection
end
# Check whether this implementation is suitable for our platform.
def suitable?(short = true)
return confine_collection.valid? if short
return confine_collection.summary
end
end
|