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

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta14 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta13 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta12 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta11 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta10 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta9 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta8 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta7 lib/specinfra/command/windows/base/feature.rb