Sha256: 483cd7626becd0a19465ba927ba0500e5f0877cd39ec1249e8870c235b7aeffe

Contents?: true

Size: 564 Bytes

Versions: 356

Compression:

Stored size: 564 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, option='')
      "nix-env -i #{option} #{package}"
    end
  end
end

Version data entries

356 entries across 356 versions & 3 rubygems

Version Path
specinfra-2.71.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.70.2 lib/specinfra/command/nixos/base/package.rb
specinfra-2.70.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.70.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.69.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.68.2 lib/specinfra/command/nixos/base/package.rb
specinfra-2.68.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.68.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.10 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.9 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.8 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.7 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.6 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.5 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.3 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.2 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.67.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.66.9 lib/specinfra/command/nixos/base/package.rb
specinfra-2.66.8 lib/specinfra/command/nixos/base/package.rb