Class: Serverspec::Type::WindowsFeature

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/windows_feature.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #to_ary, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#installed?(provider, version) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/serverspec/type/windows_feature.rb', line 3

def installed?(provider, version)
  @runner.check_feature_is_enabled(@name, provider)
end