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.68.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.10 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.9 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.8 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.7 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.6 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.5 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.3 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.2 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.1 lib/specinfra/command/windows/base/package.rb
specinfra-2.67.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.9 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.8 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.7 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.6 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.5 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.4 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.3 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.2 lib/specinfra/command/windows/base/package.rb
specinfra-2.66.1 lib/specinfra/command/windows/base/package.rb