Sha256: d7b30f8a94545291c9d0c605f66f010f10c48673d4d3d4311559146790a0b8cf

Contents?: true

Size: 399 Bytes

Versions: 9

Compression:

Stored size: 399 Bytes

Contents

class Specinfra::Command::Windows::Base::Package < Specinfra::Command::Windows::Base
  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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta14 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta13 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta12 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta11 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta10 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta9 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta8 lib/specinfra/command/windows/base/package.rb
specinfra-2.0.0.beta7 lib/specinfra/command/windows/base/package.rb