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.66.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.65.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.64.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.63.3 lib/specinfra/command/windows/base/package.rb
specinfra-2.63.2 lib/specinfra/command/windows/base/package.rb
specinfra-2.63.1 lib/specinfra/command/windows/base/package.rb
specinfra-2.63.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.62.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.61.3 lib/specinfra/command/windows/base/package.rb
specinfra-2.61.2 lib/specinfra/command/windows/base/package.rb
specinfra-2.61.1 lib/specinfra/command/windows/base/package.rb
specinfra-2.61.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.60.4 lib/specinfra/command/windows/base/package.rb
specinfra-2.60.3 lib/specinfra/command/windows/base/package.rb
specinfra-2.60.2 lib/specinfra/command/windows/base/package.rb
specinfra-2.60.1 lib/specinfra/command/windows/base/package.rb
specinfra-2.60.0 lib/specinfra/command/windows/base/package.rb
specinfra-2.59.6 lib/specinfra/command/windows/base/package.rb
specinfra-2.59.5 lib/specinfra/command/windows/base/package.rb
specinfra-2.59.4 lib/specinfra/command/windows/base/package.rb