Sha256: a7ff510c8d4296fbf699efc473492b7db514f1abc0128fc468d6f33c70472890

Contents?: true

Size: 356 Bytes

Versions: 9

Compression:

Stored size: 356 Bytes

Contents

class Specinfra::Command::Plamo::Base::Package < Specinfra::Command::Linux::Base::Package
  def check_is_installed(package, version=nil)
    cmd = "ls /var/log/packages/#{escape(package)}"
    if version
      cmd = "#{cmd} && grep -E \"PACKAGE NAME:.+#{escape(package)}-#{escape(version)}\" /var/log/packages/#{escape(package)}"
    end
    cmd
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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