Sha256: 5ac6e8fe8c8decab686d17802259969b06ead3197a5b9fe62e7bc161cee2828c

Contents?: true

Size: 435 Bytes

Versions: 354

Compression:

Stored size: 435 Bytes

Contents

class Specinfra::Command::Windows::Base::Package < Specinfra::Command::Windows::Base
  class << self
    def check_is_installed(package, version=nil)
      version_selection = version.nil? ? "" : "-appVersion '#{version}'"
      Backend::PowerShell::Command.new do
        using 'find_installed_application.ps1'
        exec "(FindInstalledApplication -appName '#{package}' #{version_selection}) -eq $true"
      end
    end
  end
end

Version data entries

354 entries across 354 versions & 3 rubygems

Version Path
specinfra-2.82.18 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.17 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.16 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.15 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.14 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.13 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.12 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.11 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.10 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.9 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.8 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.7 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.6 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.5 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.4 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.3 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.2 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.1 lib/specinfra/command/windows/base/package.rb
specinfra-2.82.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.81.0 lib/specinfra/command/windows/base/package.rb