Module: Puppet::Provider::Confiner
- Included in:
- Network::Format, Puppet::Provider
- Defined in:
- lib/vendor/puppet/provider/confiner.rb
Instance Method Summary collapse
- #confine(hash) ⇒ Object
- #confine_collection ⇒ Object
-
#suitable?(short = true) ⇒ Boolean
Check whether this implementation is suitable for our platform.
Instance Method Details
#confine(hash) ⇒ Object
4 5 6 |
# File 'lib/vendor/puppet/provider/confiner.rb', line 4 def confine(hash) confine_collection.confine(hash) end |
#confine_collection ⇒ Object
8 9 10 |
# File 'lib/vendor/puppet/provider/confiner.rb', line 8 def confine_collection @confine_collection ||= Puppet::Provider::ConfineCollection.new(self.to_s) end |
#suitable?(short = true) ⇒ Boolean
Check whether this implementation is suitable for our platform.
13 14 15 |
# File 'lib/vendor/puppet/provider/confiner.rb', line 13 def suitable?(short = true) return(short ? confine_collection.valid? : confine_collection.summary) end |