Sha256: ea02fdd65d7645468ee9c67e65e6766acc62ce440d60432b29e6640d103d7adf
Contents?: true
Size: 543 Bytes
Versions: 3
Compression:
Stored size: 543 Bytes
Contents
class Specinfra::Command::Nixos::Base::Package < Specinfra::Command::Linux::Base::Package class << self def check_is_installed(package, version=nil) if version "nix-store -q --references /var/run/current-system/sw | grep #{escape(package)}-#{escape(version)}" else "nix-store -q --references /var/run/current-system/sw | grep #{escape(package)}" end end alias :check_is_installed_by_nix :check_is_installed def install(package, version=nil) "nix-env -i #{package}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems