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

Version Path
specinfra-2.0.0.beta32 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta31 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta30 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta29 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta28 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta27 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta26 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta25 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta24 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta23 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta22 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta21 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta20 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta19 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta18 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta17 lib/specinfra/command/windows/base/feature.rb
specinfra-2.0.0.beta16 lib/specinfra/command/windows/base/feature.rb