Sha256: 8a0f51e8d2f073886a8190fcf7b0ec930c2374ddc405e8e4d86365115c1db468

Contents?: true

Size: 482 Bytes

Versions: 364

Compression:

Stored size: 482 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.to_s}).count -gt 0"
      end

      Backend::PowerShell::Command.new do
        using 'list_windows_features.ps1'
        exec cmd
      end
    end
  end
end

Version data entries

364 entries across 364 versions & 3 rubygems

Version Path
specinfra-2.60.3 lib/specinfra/command/windows/base/feature.rb
specinfra-2.60.2 lib/specinfra/command/windows/base/feature.rb
specinfra-2.60.1 lib/specinfra/command/windows/base/feature.rb
specinfra-2.60.0 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.6 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.5 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.4 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.3 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.2 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.1 lib/specinfra/command/windows/base/feature.rb
specinfra-2.59.0 lib/specinfra/command/windows/base/feature.rb
specinfra-2.58.0 lib/specinfra/command/windows/base/feature.rb
specinfra-2.57.5 lib/specinfra/command/windows/base/feature.rb
specinfra-2.57.4 lib/specinfra/command/windows/base/feature.rb
specinfra-2.57.3 lib/specinfra/command/windows/base/feature.rb
specinfra-2.57.2 lib/specinfra/command/windows/base/feature.rb
specinfra-2.57.1 lib/specinfra/command/windows/base/feature.rb
specinfra-cisco-2.41.0 lib/specinfra/command/windows/base/feature.rb
specinfra-2.57.0 lib/specinfra/command/windows/base/feature.rb
specinfra-2.56.1 lib/specinfra/command/windows/base/feature.rb