Sha256: 2f3bd4c5ca982dc8061d6a24bf1b6bbf05bc94ac0ebf01906bce3dbdedfdc268
Contents?: true
Size: 476 Bytes
Versions: 17
Compression:
Stored size: 476 Bytes
Contents
class Specinfra::Command::Windows::Base::Feature < Specinfra::Command::Windows::Base class << self 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 end
Version data entries
17 entries across 17 versions & 1 rubygems