Sha256: f3fd7248d87688e2cd255705cd2be1c20c7fe09b84cbd37600885b3e8fd86f2b
Contents?: true
Size: 432 Bytes
Versions: 9
Compression:
Stored size: 432 Bytes
Contents
class Specinfra::Command::Windows::Base::Feature < Specinfra::Command::Windows::Base def check_is_enabled(name,provider) if provider.nil? cmd = "@(ListWindowsFeatures -feature #{name}).count -gt 0" else cmd = "@(ListWindowsFeatures -feature #{name} -provider #{provider}).count -gt 0" end Backend::PowerShell::Command.new do using 'list_windows_features.ps1' exec cmd end end end
Version data entries
9 entries across 9 versions & 1 rubygems