Class: Puppet::IisFileSystemPathProperty
- Inherits:
-
IisProperty
- Object
- Property
- IisProperty
- Puppet::IisFileSystemPathProperty
- Defined in:
- lib/puppet/type/iis/iis_file_system_path_property.rb
Instance Method Summary collapse
Instance Method Details
#insync?(is) ⇒ Boolean
9 10 11 |
# File 'lib/puppet/type/iis/iis_file_system_path_property.rb', line 9 def insync?(is) self.is_to_s(is).casecmp(self.should_to_s(@should)) == 0 end |
#validate(value) ⇒ Object
5 6 7 |
# File 'lib/puppet/type/iis/iis_file_system_path_property.rb', line 5 def validate(value) raise Puppet::Error, "Invalid value for attribute '#{name}', must use back slashes instead of forward slashes" if self.should_to_s(value).include?('/') end |