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.91.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.90.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.90.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.89.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.88.2 lib/specinfra/command/nixos/base/package.rb
specinfra-2.88.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.88.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.87.2 lib/specinfra/command/nixos/base/package.rb
specinfra-2.87.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.87.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.86.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.85.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.85.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.84.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.84.0 lib/specinfra/command/nixos/base/package.rb
specinfra-2.83.4 lib/specinfra/command/nixos/base/package.rb
specinfra-2.83.3 lib/specinfra/command/nixos/base/package.rb
specinfra-2.83.2 lib/specinfra/command/nixos/base/package.rb
specinfra-2.83.1 lib/specinfra/command/nixos/base/package.rb
specinfra-2.83.0 lib/specinfra/command/nixos/base/package.rb